2017-03-07 02:04:44 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting gitlab-pages"
|
2017-03-07 02:41:24 +01:00
|
|
|
|
|
|
|
checkpath -f -m 0640 -o @USER@:@USER@ /var/log/gitlab-pages.log
|
|
|
|
|
2017-03-07 02:04:44 +01:00
|
|
|
start-stop-daemon --start --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid \
|
|
|
|
--make-pidfile --background --user @USER@:@USER@ --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
2017-03-07 02:41:24 +01:00
|
|
|
-- ${LISTEN_HTTP:+-listen-http }${LISTEN_HTTP} \
|
|
|
|
${LISTEN_HTTPS:+-listen-https }${LISTEN_HTTPS} \
|
|
|
|
${LISTEN_PROXY:+-listen-proxy }${LISTEN_PROXY} \
|
2017-03-07 02:04:44 +01:00
|
|
|
-pages-domain "${PAGES_DOMAIN}" -pages-root "${PAGES_ROOT}"
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2017-03-07 02:41:24 +01:00
|
|
|
ebegin "Stopping gitlab-pages"
|
|
|
|
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid --user @USER@:@USER@
|
2017-03-07 02:04:44 +01:00
|
|
|
eend $?
|
|
|
|
}
|