Manuel Friedli
bc99faba9d
Fixed buggy configuration: - Logfile was not accessible - Init script didn't start nor stop the daemon correctly Package-Manager: portage-2.3.3
21 lines
698 B
Text
21 lines
698 B
Text
#!/sbin/openrc-run
|
|
|
|
start() {
|
|
ebegin "Starting gitlab-pages"
|
|
|
|
checkpath -f -m 0640 -o @USER@:@USER@ /var/log/gitlab-pages.log
|
|
|
|
start-stop-daemon --start --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid \
|
|
--make-pidfile --background --user @USER@:@USER@ --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
|
-- ${LISTEN_HTTP:+-listen-http }${LISTEN_HTTP} \
|
|
${LISTEN_HTTPS:+-listen-https }${LISTEN_HTTPS} \
|
|
${LISTEN_PROXY:+-listen-proxy }${LISTEN_PROXY} \
|
|
-pages-domain "${PAGES_DOMAIN}" -pages-root "${PAGES_ROOT}"
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping gitlab-pages"
|
|
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid --user @USER@:@USER@
|
|
eend $?
|
|
}
|