summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <grooverdan@users.sourceforge.net>2015-10-14 07:32:34 +0200
committerSergey Vojtovich <svoj@mariadb.org>2015-10-14 12:45:58 +0200
commit079cc48e063adc3c132404cbab178fbf66750160 (patch)
tree238ccf517a5f826f78cd3425b4a4aa230850de35
parent82fb035eccdd26adb0751b243075a3bd7efd9366 (diff)
downloadmariadb-git-079cc48e063adc3c132404cbab178fbf66750160.tar.gz
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
-rwxr-xr-xscripts/mariadb-service-convert8
1 files 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