Skip to content
Snippets Groups Projects
Commit 6a029896 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed: work even if no pid file exists.

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