Initial commit

This commit is contained in:
Vladimir V Maksimov
2025-10-26 02:03:14 +03:00
commit 9361880b33
10 changed files with 217 additions and 0 deletions

16
bin/start.sh Executable file
View 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