From 079cc48e063adc3c132404cbab178fbf66750160 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 14 Oct 2015 07:32:34 +0200 Subject: [PATCH] MDEV-426: systemd mariadb-sevice-convert - abs paths Systemd config files need absolute paths. LimitCore was ment to be LimitCORE Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:7] Unknown lvalue 'LimitCore' in section 'Service' Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:9] Executable path is not absolute, ignoring: sync Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:10] Executable path is not absolute, ignoring: sysctl -q -w vm.drop_caches=3 --- scripts/mariadb-service-convert | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/mariadb-service-convert b/scripts/mariadb-service-convert index c2cea95c07c..42654f68420 100755 --- a/scripts/mariadb-service-convert +++ b/scripts/mariadb-service-convert @@ -42,7 +42,7 @@ fi [ -n "${open_files}" ] && echo LimitNOFILE=$open_files -[ -n "${core_file_size}" ] && echo LimitCore=$core_file_size +[ -n "${core_file_size}" ] && echo LimitCORE=$core_file_size [[ "${niceness}" -gt 0 ]] && echo Nice=$niceness [ "${TZ}" != "${tz_old}" ] && echo Environment=\"TZ=${TZ}\" @@ -67,13 +67,13 @@ if [[ $want_syslog -eq 1 ]]; then fi if [[ "${flush_caches}" -gt 0 ]]; then - echo ExecStartPre=sync - echo ExecStartPre=sysctl -q -w vm.drop_caches=3 + echo ExecStartPre=/usr/bin/sync + echo ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3 fi if [[ "${numa_interleave}" -gt 0 ]]; then echo - echo ExecStart=numactl --interleave=all ${cmd} '${MYSQLD_OPTS}' + echo ExecStart=/usr/bin/numactl --interleave=all ${cmd} '${MYSQLD_OPTS}' echo fi