Commit ce5db0fd authored by Lucas Kanashiro's avatar Lucas Kanashiro

Use deb-systemd-invoke instead of invoke-rc.d

parent b91f4e9f
...@@ -9,7 +9,7 @@ case "$1" in ...@@ -9,7 +9,7 @@ case "$1" in
. /usr/share/dbconfig-common/dpkg/prerm.mysql . /usr/share/dbconfig-common/dpkg/prerm.mysql
dbc_go obs-api $@ dbc_go obs-api $@
fi fi
invoke-rc.d obsapidelayed stop || true deb-systemd-invoke stop obsapidelayed >/dev/null || true
;; ;;
purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
......
...@@ -32,9 +32,9 @@ ln -sf /lib/systemd/system/obsscheduler@.service \ ...@@ -32,9 +32,9 @@ ln -sf /lib/systemd/system/obsscheduler@.service \
if [ -d /run/systemd/system ]; then if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true systemctl --system daemon-reload >/dev/null || true
fi fi
invoke-rc.d obsscheduler@i586 start || true deb-systemd-invoke start obsscheduler@i586 >/dev/null || true
invoke-rc.d obsscheduler@x86_64 start || true deb-systemd-invoke start obsscheduler@x86_64 >/dev/null || true
invoke-rc.d obsscheduler@armv7hl start || true deb-systemd-invoke start obsscheduler@armv7hl >/dev/null || true
#DEBHELPER# #DEBHELPER#
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
if [ "$1" = "remove" ]; then if [ "$1" = "remove" ]; then
# Stop the obsschedulers that we started by default # Stop the obsschedulers that we started by default
invoke-rc.d obsscheduler@i586 stop || true deb-systemd-invoke stop obsscheduler@i586 >/dev/null || true
invoke-rc.d obsscheduler@x86_64 stop || true deb-systemd-invoke stop obsscheduler@x86_64 >/dev/null|| true
invoke-rc.d obsscheduler@armv7hl stop || true deb-systemd-invoke stop obsscheduler@armv7hl >/dev/null || true
# Disable schedulers # Disable schedulers
#deb-systemd-helper disable obsscheduler\@i586.service #deb-systemd-helper disable obsscheduler\@i586.service
#deb-systemd-helper disable obsscheduler\@x86_64.service #deb-systemd-helper disable obsscheduler\@x86_64.service
......
#!/bin/sh -e #!/bin/sh -e
if [ "$1" = "remove" ]; then if [ "$1" = "remove" ]; then
invoke-rc.d obsworker stop || true deb-systemd-invoke stop obsworker >/dev/null || true
fi fi
#DEBHELPER# #DEBHELPER#
Markdown is supported
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