jvb: finish script for graceful shutdown (#1676)
This commit is contained in:
committed by
GitHub
parent
4fba8b5d98
commit
3519113ef9
9
jvb/rootfs/etc/services.d/jvb/finish
Normal file
9
jvb/rootfs/etc/services.d/jvb/finish
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# When the jvb is shutdown (or gracefully shutdown), it exits with code 0.
|
||||
# In this case, we don't want S6 to restart the service. We want to stop all
|
||||
# services and shutdown the container.
|
||||
|
||||
if [[ $1 -eq 0 ]]; then
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
fi
|
||||
Reference in New Issue
Block a user