Skip to content

Instantly share code, notes, and snippets.

@nheine
Created June 17, 2015 05:59
Show Gist options
  • Save nheine/e74211ee33bc6a4cb39e to your computer and use it in GitHub Desktop.
Save nheine/e74211ee33bc6a4cb39e to your computer and use it in GitHub Desktop.
a gitlab-ci-multi-runner init script for gentoo openrc
#!/sbin/runscript
# Copyright 2015 Nicolas Heine
depend() {
after sshd
need net
need localmount
}
start() {
ebegin "Starting gitlab-ci-multi-runner"
start-stop-daemon --start -b -u gitlab_ci_multi_runner --chdir /home/gitlab_ci_multi_runner --pidfile /var/run/gitlab-ci-multi-runner.pid -1 /dev/null -2 /dev/null --make-pidfile \
--exec /usr/local/bin/gitlab-ci-multi-runner -- run
eend $?
}
stop() {
ebegin "Stopping gitlab-ci-multi-runner"
start-stop-daemon --stop --pidfile /var/run/gitlab-ci-multi-runner.pid
eend $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment