check if pid is still running
This commit is contained in:
parent
8528a4450f
commit
2e60ade8ff
1 changed files with 4 additions and 2 deletions
2
ctl
2
ctl
|
@ -86,9 +86,11 @@ fi
|
|||
if [ "$1" == "debug" ]; then
|
||||
cd "$BASE/$NAME"
|
||||
if [ -e $PID ]; then
|
||||
if ps -p `cat "$PID"` > /dev/null; then
|
||||
echo openmedialibrary already running
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
shift
|
||||
python3 oml server debug $PID
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue