Edite o arquivo upstart /etc/init/gitlab-runsvdir.conf
e comente a linha start on runlevel [2345]
Arquivo resultante /etc/init/gitlab-runsvdir.conf
:
#start on runlevel [2345]
stop on shutdown
respawn
post-stop script
# To avoid stomping on runsv's owned by a different runsvdir
# process, kill any runsv process that has been orphaned, and is
# now owned by init (process 1).
pkill -HUP -P 1 runsv$
end script
exec /opt/gitlab/embedded/bin/runsvdir-start
A linha start on level [2345]
está basicamente dizendo que o script /opt/gitlab/embedded/bin/runsvdir-start
será executado no runlevel s 2, 3, 4 e 5
Depois de ter comentado, você ainda pode gerenciar o serviço usando os seguintes comandos:
start gitlab-runsvdir # start the gitlab service
stop gitlab-runsvdir # stop the gitlab service
status gitlab-runsvdir # get status of gitlab service