diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-08 04:17:33 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-08 04:17:33 -0200 |
commit | 8d9209a81b5ea1390d10f6eb7a4faf54c3be8894 (patch) | |
tree | 966bf61f52a36d2b9075b350230c6174d925424c /~coadde/mariadb/mariadbd | |
parent | 80b0efbfa956bbf5ef55bcc53d413075811e2340 (diff) | |
download | abslibre-8d9209a81b5ea1390d10f6eb7a4faf54c3be8894.tar.gz abslibre-8d9209a81b5ea1390d10f6eb7a4faf54c3be8894.tar.bz2 abslibre-8d9209a81b5ea1390d10f6eb7a4faf54c3be8894.zip |
fix deprecated mariadb
Diffstat (limited to '~coadde/mariadb/mariadbd')
-rwxr-xr-x | ~coadde/mariadb/mariadbd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/~coadde/mariadb/mariadbd b/~coadde/mariadb/mariadbd index 3ae612096..95986eb1a 100755 --- a/~coadde/mariadb/mariadbd +++ b/~coadde/mariadb/mariadbd @@ -11,7 +11,7 @@ getPID() { case "$1" in start) stat_busy "Starting MariaDB Server" - [ ! -d /var/run/mariadb ] && install -d -g mysql -o mysql /var/run/mariadb &>/dev/null + [ ! -d /run/mariadb ] && install -d -g mysql -o mysql /run/mariadb &>/dev/null if [ -z "$(getPID)" ]; then /usr/bin/mysqld_safe --user=mysql &>/dev/null & if [ $? -gt 0 ]; then @@ -29,7 +29,7 @@ case "$1" in stat_fail exit 1 else - echo $(getPID) > /var/run/mariadb/mariadb.pid + echo $(getPID) > /run/mariadb/mariadb.pid add_daemon mysqld stat_done fi @@ -54,7 +54,7 @@ case "$1" in let timeo=${timeo}-1 done if [ -z "$(getPID)" ]; then - rm -f /var/run/mariadb/mariadb.pid &>/dev/null + rm -f /run/mariadb/mariadb.pid &>/dev/null rm_daemon mysqld stat_done else |