Initial commit
This commit is contained in:
16
bin/start.sh
Executable file
16
bin/start.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
dir=$(dirname "$0")
|
||||
|
||||
cd $dir
|
||||
|
||||
APP="http_logger"
|
||||
|
||||
PID=$(ps -o pid= -C $APP | sed 's/^[ \t]*//')
|
||||
if [ -z "$PID" ]; then
|
||||
nohup ./$APP &
|
||||
PID=$(ps -o pid= -C $APP | sed 's/^[ \t]*//')
|
||||
echo "Процесс $APP был запущен ($PID)."
|
||||
else
|
||||
echo "Процесс $APP уже запущен ($PID)."
|
||||
fi
|
||||
Reference in New Issue
Block a user