summaryrefslogtreecommitdiffstats
path: root/debian/mariadb-server.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mariadb-server.prerm')
-rw-r--r--debian/mariadb-server.prerm14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/mariadb-server.prerm b/debian/mariadb-server.prerm
new file mode 100644
index 00000000..2701fa5f
--- /dev/null
+++ b/debian/mariadb-server.prerm
@@ -0,0 +1,14 @@
+#!/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