Commit a2296520 authored by Ondrej Sury's avatar Ondrej Sury
Browse files

Run invoke-rc.d mysql maintscript snippets only when running under sysvinit (Closes: #864593)

parent c3445ba6
......@@ -167,4 +167,11 @@ fi
#DEBHELPER#
# Modified dh_installinit snippet to only run with sysvinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ ! -e /run/systemd/system ] && [ -x "/etc/init.d/mysql" ]; then
invoke-rc.d mysql start || exit $?
fi
fi
exit 0
#!/bin/sh
set -e
#DEBHELPER#
# Modified dh_installinit snippet to only run with sysvinit
if [ ! -e /run/systemd/system ] && [ -x "/etc/init.d/mysql" ]; then
invoke-rc.d mysql stop || exit $?
fi
exit 0
......@@ -140,7 +140,7 @@ override_dh_systemd_enable:
# Start mysql at sequence number 19 before 20 where apache, proftpd etc gets
# started which might depend on a running database server.
override_dh_installinit-arch:
dh_installinit --name=mysql -- defaults 19 21
dh_installinit --name=mysql --no-start -- defaults 19 21
dh_systemd_start --no-restart-after-upgrade
override_dh_installcron-arch:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment