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
a3a663d964
commit
1dca2ce516
1 changed files with 5 additions and 2 deletions
|
@ -2,5 +2,8 @@
|
|||
|
||||
. ./config.sh
|
||||
echo "Listening at Port: $PORT"
|
||||
socat TCP-LISTEN:$PORT,reuseaddr,fork SYSTEM:"./main.sh" || exit 1
|
||||
|
||||
if [ "$1" = "-d" -o "$1" = "--daemon" ]; then
|
||||
nohup 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
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue