X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostrm;h=7d4c1123d0f0ef182e3182fa04ce4b9fe15a3918;hb=c57f2a756831077fa8d56edf21395df39c9d3a5b;hp=3ec16ad7693f6d1732c4bd9084be0514f36e49f0;hpb=8148e066d8e492ea12ff16573f1b72b8591ef81e;p=monit-cn.git diff --git a/debian/postrm b/debian/postrm index 3ec16ad..7d4c112 100755 --- a/debian/postrm +++ b/debian/postrm @@ -1,5 +1,5 @@ #!/bin/sh -# postrm script for bind9-cn +# postrm script for monit-cn # # see: dh_installdeb(1) @@ -34,12 +34,17 @@ esac echo "CN: Removing monit service from /etc/inittab" cp-update -r monit-cn /etc/inittab +# remove us from systemv monit script +echo "CN: Removing monit workaround from /etc/init.d/monit" +cp-update -r monit-cn /etc/init.d/monit +chmod +x /etc/init.d/monit + # kill monit echo "CN: Stopping monit service" -pkill -9 -f /usr/sbin/monit || true +pkill -9 -f /usr/bin/monit || true # reload init -kill -HUP 1 +telinit q # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.