mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
69964c4425
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
12 lines
326 B
Bash
12 lines
326 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
# Modified dh_systemd_start snippet that's not added automatically
|
|
if [ -d /run/systemd/system ]; then
|
|
deb-systemd-invoke stop mariadb.service >/dev/null
|
|
# Modified dh_installinit snippet to only run with sysvinit
|
|
elif [ -x "/etc/init.d/mariadb" ]; then
|
|
invoke-rc.d mariadb stop || exit $?
|
|
fi
|