Commit 6a029896 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed: work even if no pid file exists.

parent 5d243b8c
......@@ -46,12 +46,11 @@ case "$1"x in
fi
fi;;
onx|upx|startx)
rm -f @ETCDIR@/status
if kill -HUP `cat @ETCDIR@/pid`
then true
else @BINDIR@/updateLysKOM
fi;;
rm -f @ETCDIR@/status;;
offx|downx|shutdownx)
whoami > @ETCDIR@/status
kill -HUP `cat @ETCDIR@/pid`;;
if [ -f @ETCDIR@/pid ]
then
kill -HUP `cat @ETCDIR@/pid` 2>/dev/null
fi;;
esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment