Commit 079cc48e authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

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
parent 82fb035e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment