mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Update start-socat.sh
This commit is contained in:
parent
171d35f8da
commit
124caad5bb
1 changed files with 4 additions and 1 deletions
|
@ -5,5 +5,8 @@ echo "Listening at Port: $PORT"
|
|||
if [ "$1" = "-d" -o "$1" = "--daemon" ]; then
|
||||
setsid socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh" > /dev/null 2>&1 &
|
||||
else
|
||||
socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh" || exit 1
|
||||
socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh" &
|
||||
echo $! > /run/lock/simpsh-httpd.lock
|
||||
fg
|
||||
rm /run/lock/simpsh-httpd.lock
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue