Skip to content

Commit 18ac85b

Browse files
madmatahsaghul
authored andcommitted
jibri: allow graceful shutdown of the container
1 parent 3c19ed6 commit 18ac85b

File tree

1 file changed

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

1 file changed

+9
-0
lines changed
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 jibri is shutdown (or gracefully shutdown), it exits with code 255.
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 255 ]]; then
8+
s6-svscanctl -t /var/run/s6/services
9+
fi

0 commit comments

Comments
 (0)