Torsten Kurbad
92a1341c6e
git-svn-id: svn+ssh://svnintern.kmrc.de/projects/gentoo/iwm-overlay@34766 cbe59ace-07ea-0310-918e-868702b5370d
17 lines
689 B
Plaintext
17 lines
689 B
Plaintext
#!/sbin/runscript
|
|
|
|
start() {
|
|
ebegin "Starting gitlab-git-http-server"
|
|
start-stop-daemon --start --exec /usr/bin/gitlab-git-http-server --pidfile /run/gitlab-git-http-server.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-git-http-server"
|
|
start-stop-daemon --stop --exec /usr/bin/gitlab-git-http-server --pidfile /run/gitlab-git-http-server.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
|
|
eend $?
|
|
}
|