summaryrefslogtreecommitdiff
path: root/docker/app/assets/wrapper
blob: 9e6e7a05903021813c6c629df7864dc7ca63531c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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