mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Create finish script for vpn_guard service
Add finish script to handle Nginx failure in vpn_guard.
This commit is contained in:
8
qbittorrent/rootfs/etc/services.d/vpn_guard/finish
Normal file
8
qbittorrent/rootfs/etc/services.d/vpn_guard/finish
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Take down the S6 supervision tree when Nginx fails
|
||||
# ==============================================================================
|
||||
if { s6-test ${1} -ne 0 }
|
||||
if { s6-test ${1} -ne 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
Reference in New Issue
Block a user