summaryrefslogtreecommitdiff
path: root/debian/mariadb-server-10.6.prerm
blob: 0325a80c9b668de16c45d3b2b4d19773d13d40f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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