own postinst and prerm
This commit is contained in:
parent
6f07969451
commit
d35c0315dd
4 changed files with 34 additions and 1 deletions
18
debian/postinst
vendored
Normal file
18
debian/postinst
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
if [ -f "/etc/default/pswatcher" ]
|
||||
then
|
||||
. /etc/default/ps-watcher
|
||||
fi
|
||||
|
||||
if [ -x "/etc/init.d/ps-watcher" ]; then
|
||||
update-rc.d ps-watcher defaults 40 >/dev/null
|
||||
if [ "$startup" == "1" ] && [ -f $CONFIG ]; then
|
||||
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
||||
invoke-rc.d ps-watcher start || exit $?
|
||||
else
|
||||
/etc/init.d/ps-watcher start || exit $?
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue