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
cf1c5694ba
commit
609d19a287
1 changed files with 4 additions and 4 deletions
|
@ -7,12 +7,12 @@ This program comes with ABSOLUTELY NO WARRANTY; for details read "'"$(pwd)/LICEN
|
|||
This is free software, and you are welcome to redistribute it under certain conditions; read "'"$(pwd)/LICENSE.md"'" for details.
|
||||
'
|
||||
|
||||
. $DIR/config.sh
|
||||
. "$DIR"/config.sh
|
||||
if [ "$SUUSER" != "" ]; then SUPARM='su="'"$SUUSER"'",'; fi
|
||||
|
||||
echo "Listening at Port $PORT"
|
||||
if [ "$1" = "-d" -o "$1" = "--daemon" ]; then
|
||||
setsid socat TCP-LISTEN:$PORT,reuseaddr,"$SUPARM"fork SYSTEM:"./main.sh" > /dev/null 2>&1 &
|
||||
if [ "$1" = "-d" ] || [ "$1" = "--daemon" ]; then
|
||||
setsid socat TCP-LISTEN:"$PORT",reuseaddr,"$SUPARM"fork SYSTEM:"./main.sh" > /dev/null 2>&1 &
|
||||
else
|
||||
socat TCP-LISTEN:$PORT,reuseaddr,"$SUPARM",fork SYSTEM:"./main.sh"
|
||||
socat TCP-LISTEN:"$PORT",reuseaddr,"$SUPARM",fork SYSTEM:"./main.sh"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue