- promjena verzioniranja paketa s obzirom da je CARNet-native paket
[monit-cn.git] / debian / postrm
index 3ec16ad..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 || true
 
 # reload init
-kill -HUP 1
+/bin/kill -SIGHUP 1
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.