Created
June 17, 2015 05:59
-
-
Save nheine/e74211ee33bc6a4cb39e to your computer and use it in GitHub Desktop.
a gitlab-ci-multi-runner init script for gentoo openrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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