1
0
Fork 0
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:
niansa 2018-07-15 08:17:12 +00:00
parent 5fbf0cb95b
commit 9f90ed22e9

View file

@ -10,7 +10,7 @@ This is free software, and you are welcome to redistribute it under certain cond
. $DIR/config.sh
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 &
setsid socat TCP-LISTEN:$PORT,reuseaddr,su="$suuser",fork SYSTEM:"./main.sh" > /dev/null 2>&1 &
else
socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh"
socat TCP-LISTEN:$PORT,reuseaddr,su="$suuser",fork SYSTEM:"./main.sh"
fi