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
671678c573
commit
9e8eb031dd
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
'
|
||||
|
||||
. $DIR/config.sh
|
||||
if [ "$suuser" = "" ]; then suuser="$USER"; fi
|
||||
|
||||
echo "Listening at Port $PORT"
|
||||
if [ "$1" = "-d" -o "$1" = "--daemon" ]; then
|
||||
setsid socat TCP-LISTEN:$PORT,reuseaddr,su="$suuser",fork SYSTEM:"./main.sh" > /dev/null 2>&1 &
|
||||
|
|
Loading…
Add table
Reference in a new issue