gitlab-org--gitlab-foss/docker/single/assets/wrapper

17 lines
355 B
Text
Raw Normal View History

#!/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 &
2015-05-06 09:32:29 -04:00
gitlab-ctl reconfigure # will also start everything
gitlab-ctl tail # tail all logs
}
entrypoint