2 # postrm script for monit-cn
4 # see: dh_installdeb(1)
8 # summary of how this script can be called:
11 # * <old-postrm> `upgrade' <new-version>
12 # * <new-postrm> `failed-upgrade' <old-version>
13 # * <new-postrm> `abort-install'
14 # * <new-postrm> `abort-install' <old-version>
15 # * <new-postrm> `abort-upgrade' <old-version>
16 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
30 ## import CN-functions
31 #. /usr/share/carnet-tools/functions.sh
33 ## remove us from inittab
34 #echo "CN: Removing monit service from /etc/inittab"
35 #cp-update -r monit-cn /etc/inittab
37 ## remove us from systemv monit script
38 #echo "CN: Removing monit workaround from /etc/init.d/monit"
39 #cp-update -r monit-cn /etc/init.d/monit
40 #chmod +x /etc/init.d/monit
43 #echo "CN: Stopping monit service"
44 #pkill -9 -f /usr/bin/monit || true
49 # dh_installdeb will replace this with shell code automatically
50 # generated by other debhelper scripts.