izmjene za jessie
[monit-cn.git] / debian / postrm
index 3ec16ad..434672c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# postrm script for bind9-cn
+# postrm script for monit-cn
 #
 # see: dh_installdeb(1)
 
@@ -27,19 +27,24 @@ case "$1" in
     ;;
 esac
 
-# import CN-functions
-. /usr/share/carnet-tools/functions.sh
-
-# remove us from inittab
-echo "CN: Removing monit service from /etc/inittab"
-cp-update -r monit-cn /etc/inittab
-
-# kill monit
-echo "CN: Stopping monit service"
-pkill -9 -f /usr/sbin/monit || true
-
-# reload init
-kill -HUP 1
+## import CN-functions
+#. /usr/share/carnet-tools/functions.sh
+#
+## remove us from inittab
+#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/bin/monit || true
+#
+## reload init
+#telinit q
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.