added ebuild for dev-vcs/gitlab-workhorse-0.4.2

This commit is contained in:
Manuel Friedli 2015-11-23 10:01:06 +01:00
parent 3e3f92135e
commit 4c76aaa3f6
6 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/sbin/runscript
start() {
ebegin "Starting gitlab-workhorse"
start-stop-daemon --start --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid \
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \
-pprofListenAddr=${PPROF_LISTEN_ADDR} ${GIT_REPO_PATH}
eend $?
}
stop() {
ebegin "Stopping gitlab-workhorse"
start-stop-daemon --stop --exec /usr/bin/gitlab-workhorse --pidfile /run/gitlab-workhorse.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
eend $?
}