diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2015-09-17 22:16:19 +1000 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-10-12 17:51:49 +0200 |
commit | 20c2ae39db3dd0ec4c337a9b0bd2bf4481b61e49 (patch) | |
tree | b7764b7bcbae69da067c1d16592fdde2d82707ab /support-files/rpm | |
parent | 92271c78b6c78b1a0248ce5d1c96326b930de610 (diff) | |
download | mariadb-git-20c2ae39db3dd0ec4c337a9b0bd2bf4481b61e49.tar.gz |
MDEV-427/MDEV-5713 Add systemd script with notify functionality
Diffstat (limited to 'support-files/rpm')
-rw-r--r-- | support-files/rpm/server-postin.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index cd2aec4d84a..253350512ae 100644 --- a/support-files/rpm/server-postin.sh +++ b/support-files/rpm/server-postin.sh @@ -1,6 +1,12 @@ # Make MySQL start/shutdown automatically when the machine does it. if [ $1 = 1 ] ; then + systemd_conf=/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf + if [ -x /usr/bin/mariadb-service-convert -a ! -f "${systemd_conf}" ]; then + mkdir -p /etc/systemd/system/mariadb.service.d + /usr/bin/mariadb-service-convert > "${systemd_conf}" + fi + if [ -x /usr/bin/systemctl ] ; then /usr/bin/systemctl daemon-reload >/dev/null 2>&1 fi |