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
|
if [ "$1" == "debug" ]; then
|
||||||
cd "$BASE/$NAME"
|
cd "$BASE/$NAME"
|
||||||
if [ -e $PID ]; then
|
if [ -e $PID ]; then
|
||||||
|
if ps -p `cat "$PID"` > /dev/null; then
|
||||||
echo openmedialibrary already running
|
echo openmedialibrary already running
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
shift
|
shift
|
||||||
python3 oml server debug $PID
|
python3 oml server debug $PID
|
||||||
exit $?
|
exit $?
|
||||||
|
|
Loading…
Reference in a new issue