Commit 7a26590d authored by ale's avatar ale
Browse files

stop services and remove logs after package removal

parent f36c13eb
#!/bin/sh
# postrm script for autoradio
set -e
. /usr/share/debconf/confmodule
case "$1" in
remove)
# Clear logs.
/bin/rm -f -r /var/log/radiod
/bin/rm -f -r /var/log/redirectord
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# prerm script for midas
# prerm script for autoradio
#
# see: dh_installdeb(1)
......@@ -20,6 +20,10 @@ set -e
case "$1" in
remove|upgrade|deconfigure)
# Stop the services, if they are still running.
sv stop radiod || true
sv stop redirectord || true
# Disable runit services.
/bin/rm -f /etc/service/radiod 2>/dev/null || true
/bin/rm -f /etc/service/redirectord 2>/dev/null || true
......
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