diff options
Diffstat (limited to 'debian/mariadb-server-10.6.prerm')
-rw-r--r-- | debian/mariadb-server-10.6.prerm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/mariadb-server-10.6.prerm b/debian/mariadb-server-10.6.prerm new file mode 100644 index 00000000..8fd172da --- /dev/null +++ b/debian/mariadb-server-10.6.prerm @@ -0,0 +1,12 @@ +#!/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 |