diff options
author | Otto Kekäläinen <otto@kekalainen.net> | 2020-04-22 00:48:14 +0300 |
---|---|---|
committer | Otto Kekäläinen <otto@kekalainen.net> | 2020-05-16 10:42:35 +0300 |
commit | 69964c4425778efdecf7bc4f0006eb76e77e91a7 (patch) | |
tree | 92bf297463c820c2a7932b94c54f80f4677e4246 /debian/mariadb-server-10.5.postrm | |
parent | 764dd39ca7648e9eb190cac29e602f393a0f266a (diff) | |
download | mariadb-git-69964c4425778efdecf7bc4f0006eb76e77e91a7.tar.gz |
Deb: Add manually dh_systemd_start snippets
These do now show up automatically due to init and systemd customizations,
so the handiest fix is to add them manually. This has been the praxis
in downstream MariaDB packaging for a couple years now, and works fine.
- Ensure service is loaded and started after installation,
(fixes service start issues in Debian/Ubuntu upgrades where
otherwise service mysql status stayed stopped)
- Ensure service stopped before removal/purge
(fixes unstopped processes detected by piuparts)
- Ensure systemd daemon is reloaded after removal/purge when service
has been removed
Diffstat (limited to 'debian/mariadb-server-10.5.postrm')
-rw-r--r-- | debian/mariadb-server-10.5.postrm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/mariadb-server-10.5.postrm b/debian/mariadb-server-10.5.postrm index a92aef90698..fc3a4a67a60 100644 --- a/debian/mariadb-server-10.5.postrm +++ b/debian/mariadb-server-10.5.postrm @@ -89,3 +89,8 @@ if [ "$1" = "purge" ] && [ -f "/var/lib/mysql/debian-$MAJOR_VER.flag" ]; then fi #DEBHELPER# + +# Modified dh_systemd_start snippet that's not added automatically +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true +fi |