2020-04-07 11:10:03 +02:00
|
|
|
#!/bin/sh
|
2016-10-09 22:39:01 +02:00
|
|
|
set -e
|
2012-01-23 12:20:16 +01:00
|
|
|
|
|
|
|
#DEBHELPER#
|
2020-04-21 23:48:14 +02:00
|
|
|
|
|
|
|
# Modified dh_systemd_start snippet that's not added automatically
|
2023-03-30 12:58:54 +02:00
|
|
|
if [ -d /run/systemd/system ]
|
|
|
|
then
|
2023-03-29 11:28:51 +02:00
|
|
|
deb-systemd-invoke stop mariadb.service >/dev/null
|
|
|
|
# Modified dh_installinit snippet to only run with sysvinit
|
2023-03-30 12:58:54 +02:00
|
|
|
elif [ -x "/etc/init.d/mariadb" ]
|
|
|
|
then
|
2023-03-29 11:28:51 +02:00
|
|
|
invoke-rc.d mariadb stop || exit $?
|
2020-04-21 23:48:14 +02:00
|
|
|
fi
|