- more lintian fixes
[monit-cn.git] / debian / postrm
index eb38a65..1be4eb9 100755 (executable)
@@ -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
+pkill -9 -f /usr/sbin/monit || true
 
 # reload init
-kill -HUP 1
+/bin/kill -SIGHUP 1
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.