Skip to content

Commit 3519113

Browse files
jvb: finish script for graceful shutdown (jitsi#1676)
1 parent 4fba8b5 commit 3519113

File tree

1 file changed

+9
-0
lines changed
  • jvb/rootfs/etc/services.d/jvb

1 file changed

+9
-0
lines changed

jvb/rootfs/etc/services.d/jvb/finish

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
# When the jvb is shutdown (or gracefully shutdown), it exits with code 0.
4+
# In this case, we don't want S6 to restart the service. We want to stop all
5+
# services and shutdown the container.
6+
7+
if [[ $1 -eq 0 ]]; then
8+
s6-svscanctl -t /var/run/s6/services
9+
fi

0 commit comments

Comments
 (0)