2015-09-14 20:43:42 +02:00
|
|
|
#!/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 \
|
2015-09-28 21:33:24 +02:00
|
|
|
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} \
|
2015-09-14 20:43:42 +02:00
|
|
|
-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \
|
|
|
|
-pprofListenAddr=${PPROF_LISTEN_ADDR} ${GIT_REPO_PATH}
|
2015-09-28 21:33:24 +02:00
|
|
|
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 $?
|
2015-09-14 20:43:42 +02:00
|
|
|
}
|