prerm is in obs-server 2.7.4-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh -e
# Automatically added by dh_systemd_start/10.7.2ubuntu2
if [ -d /run/systemd/system ]; then
deb-systemd-invoke stop obsdispatcher.service obsdodup.service obspublisher.service obsrepserver.service obssigner.service obssrcserver.service obswarden.service >/dev/null
fi
# End automatically added section
if [ "$1" = "remove" ]; then
# Stop the obsschedulers that we started by default
invoke-rc.d obsscheduler@i586 stop || true
invoke-rc.d obsscheduler@x86_64 stop || true
invoke-rc.d obsscheduler@armv7hl stop || true
# Disable schedulers
#deb-systemd-helper disable obsscheduler\@i586.service
#deb-systemd-helper disable obsscheduler\@x86_64.service
#deb-systemd-helper disable obsscheduler\@armv7hl.service
# FIXME manually drop symlink, deb-systemd-helper does not support
# template services yet.
rm -f /etc/systemd/system/multi-user.target.wants/obsscheduler\@i586.service
rm -f /etc/systemd/system/multi-user.target.wants/obsscheduler\@x86_64.service
rm -f /etc/systemd/system/multi-user.target.wants/obsscheduler\@armv7hl.service
# tell systemd to reload
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
fi
|