mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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
This commit is contained in:
parent
82fb035ecc
commit
079cc48e06
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue