www-servers/gitlab-pages:
Fixed buggy configuration: - Logfile was not accessible - Init script didn't start nor stop the daemon correctly Package-Manager: portage-2.3.3
This commit is contained in:
parent
f1ab923b5f
commit
bc99faba9d
4 changed files with 17 additions and 7 deletions
|
@ -4,4 +4,4 @@ LISTEN_PROXY=
|
|||
PAGES_DOMAIN=example-pages.com
|
||||
PAGES_ROOT=/opt/gitlab/shared/pages
|
||||
|
||||
LOGFILE=/var/log/gitlab/gitlab-pages.log
|
||||
LOGFILE=/var/log/gitlab-pages.log
|
||||
|
|
|
@ -2,15 +2,20 @@
|
|||
|
||||
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-https "${LISTEN_HTTPS}" -listen-proxy "${LISTEN_PROXY}" \
|
||||
-- ${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-workhorse"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-workhorse.pid --user @USER@:@USER@
|
||||
ebegin "Stopping gitlab-pages"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-pages --pidfile /run/gitlab-pages.pid --user @USER@:@USER@
|
||||
eend $?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue