projects
/
monit-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- more lintian fixes
[monit-cn.git]
/
debian
/
postrm
diff --git
a/debian/postrm
b/debian/postrm
index
eb38a65
..
1be4eb9
100755
(executable)
--- a/
debian/postrm
+++ b/
debian/postrm
@@
-34,12
+34,17
@@
esac
echo "CN: Removing monit service from /etc/inittab"
cp-update -r monit-cn /etc/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"
# kill monit
echo "CN: Stopping monit service"
-pkill -9 -f /usr/sbin/monit
+pkill -9 -f /usr/sbin/monit || true
# reload init
# reload init
-kill -HUP 1
+/bin/kill -SIGHUP 1
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.