diff --git a/init.d/mariadb b/init.d/mariadb index f4051d4b..3178a5d2 100755 --- a/init.d/mariadb +++ b/init.d/mariadb @@ -86,7 +86,7 @@ sanity_checks() { datadir=`mariadbd_get_param datadir` # As preset blocksize of GNU df is 1024 then available bytes is $df_available_blocks * 1024 # 4096 blocks is then lower than 4 MB - df_available_blocks=`LC_ALL=C BLOCKSIZE= df --output=avail "$datadir" | tail -n 1` + df_available_blocks="$(LC_ALL=C BLOCKSIZE='' df --output=avail "$datadir" | tail -n 1)" if [ "$df_available_blocks" -lt "4096" ]; then log_failure_msg "$0: ERROR: The partition with $datadir is too full!" echo "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER diff --git a/rc0.d/K01mariadb b/rc0.d/K01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc0.d/K01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc1.d/K01mariadb b/rc1.d/K01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc1.d/K01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc2.d/S01mariadb b/rc2.d/S01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc2.d/S01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc3.d/S01mariadb b/rc3.d/S01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc3.d/S01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc4.d/S01mariadb b/rc4.d/S01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc4.d/S01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc5.d/S01mariadb b/rc5.d/S01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc5.d/S01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/rc6.d/K01mariadb b/rc6.d/K01mariadb new file mode 120000 index 00000000..5d255e0b --- /dev/null +++ b/rc6.d/K01mariadb @@ -0,0 +1 @@ +../init.d/mariadb \ No newline at end of file diff --git a/systemd/system/multi-user.target.wants/mariadb.service b/systemd/system/multi-user.target.wants/mariadb.service new file mode 120000 index 00000000..fd9e114a --- /dev/null +++ b/systemd/system/multi-user.target.wants/mariadb.service @@ -0,0 +1 @@ +/lib/systemd/system/mariadb.service \ No newline at end of file