check if process is still running
This commit is contained in:
parent
31485f1157
commit
193671be5c
1 changed files with 4 additions and 2 deletions
6
ctl
6
ctl
|
@ -41,8 +41,10 @@ ulimit -S -n 2048
|
||||||
if [ "$1" == "start" ]; then
|
if [ "$1" == "start" ]; then
|
||||||
cd "$BASE/$NAME"
|
cd "$BASE/$NAME"
|
||||||
if [ -e $PID ]; then
|
if [ -e $PID ]; then
|
||||||
echo openmedialibrary already running
|
if ps -p `cat "$PID"` > /dev/null; then
|
||||||
exit 1
|
echo openmedialibrary already running
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$BASE/$NAME/.git" ]; then
|
if [ ! -d "$BASE/$NAME/.git" ]; then
|
||||||
python3 oml install_update
|
python3 oml install_update
|
||||||
|
|
Loading…
Reference in a new issue