summaryrefslogtreecommitdiff
path: root/docker/assets/wrapper
blob: 966b2cab4a13f2727aa61731ad2f0c07f46bc42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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() {
    /opt/gitlab/embedded/bin/runsvdir-start &
    gitlab-ctl reconfigure # will also start everything
    gitlab-ctl tail # tail all logs
}

entrypoint