mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 03:55:41 -04:00
Initial upload
This commit is contained in:
16
root/etc/s6-overlay/s6-rc.d/svc-nginx/run
Normal file
16
root/etc/s6-overlay/s6-rc.d/svc-nginx/run
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if pgrep -f "[n]ginx:" >/dev/null; then
|
||||
echo "Zombie nginx processes detected, sending SIGTERM"
|
||||
pkill -ef [n]ginx:
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
if pgrep -f "[n]ginx:" >/dev/null; then
|
||||
echo "Zombie nginx processes still active, sending SIGKILL"
|
||||
pkill -9 -ef [n]ginx:
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
exec /usr/sbin/nginx
|
||||
Reference in New Issue
Block a user