BigW Consortium Gitlab

wrapper 354 Bytes
Newer Older
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