Kill server process

This commit is contained in:
Kroese 2023-05-08 22:19:37 +02:00 committed by GitHub
parent 398b68fd5b
commit aafcc633c2

View File

@ -226,7 +226,7 @@ if [[ "${DHCP}" == [Yy1]* ]]; then
# Configuration for DHCP IP # Configuration for DHCP IP
configureDHCP configureDHCP
pkill -f server.sh || true { pkill -f server.sh || true } 2>/dev/null
SH_SCRIPT="/run/ipinfo.sh" SH_SCRIPT="/run/ipinfo.sh"
@ -244,8 +244,8 @@ if [[ "${DHCP}" == [Yy1]* ]]; then
chmod +x "$SH_SCRIPT" chmod +x "$SH_SCRIPT"
/run/server.sh 80 "$SH_SCRIPT" > /dev/null & /run/server.sh 80 "$SH_SCRIPT" &
/run/server.sh 5000 "$SH_SCRIPT" > /dev/null & /run/server.sh 5000 "$SH_SCRIPT" &
else else