diff options
Diffstat (limited to 'docker/app/assets/wrapper')
-rwxr-xr-x | docker/app/assets/wrapper | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docker/app/assets/wrapper b/docker/app/assets/wrapper new file mode 100755 index 00000000000..9e6e7a05903 --- /dev/null +++ b/docker/app/assets/wrapper @@ -0,0 +1,17 @@ +#!/bin/bash + +function sigterm_handler() { + echo "SIGTERM signal received, try to gracefully shutdown all services..." + gitlab-ctl stop +} + +trap "sigterm_handler; exit" TERM + +function entrypoint() { + # Default is to run runit and reconfigure GitLab + gitlab-ctl reconfigure & + /opt/gitlab/embedded/bin/runsvdir-start & + wait +} + +entrypoint |