Skip to content

Commit 079cc48

Browse files
grooverdansvoj
authored andcommitted
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
1 parent 82fb035 commit 079cc48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/mariadb-service-convert

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242

4343

4444
[ -n "${open_files}" ] && echo LimitNOFILE=$open_files
45-
[ -n "${core_file_size}" ] && echo LimitCore=$core_file_size
45+
[ -n "${core_file_size}" ] && echo LimitCORE=$core_file_size
4646
[[ "${niceness}" -gt 0 ]] && echo Nice=$niceness
4747
[ "${TZ}" != "${tz_old}" ] && echo Environment=\"TZ=${TZ}\"
4848

@@ -67,13 +67,13 @@ if [[ $want_syslog -eq 1 ]]; then
6767
fi
6868

6969
if [[ "${flush_caches}" -gt 0 ]]; then
70-
echo ExecStartPre=sync
71-
echo ExecStartPre=sysctl -q -w vm.drop_caches=3
70+
echo ExecStartPre=/usr/bin/sync
71+
echo ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3
7272
fi
7373

7474
if [[ "${numa_interleave}" -gt 0 ]]; then
7575
echo
76-
echo ExecStart=numactl --interleave=all ${cmd} '${MYSQLD_OPTS}'
76+
echo ExecStart=/usr/bin/numactl --interleave=all ${cmd} '${MYSQLD_OPTS}'
7777
echo
7878
fi
7979

0 commit comments

Comments
 (0)