19 lines
404 B
Bash
19 lines
404 B
Bash
#!/bin/sh
|
|
set -e
|
|
if [ -f "/etc/default/pswatcher" ]
|
|
then
|
|
. /etc/default/ps-watcher
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/ps-watcher" ]; then
|
|
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
|
|
|
|
#DEBHELPER#
|