www-servers/gitlab-gitaly:
Fix bug in checkpath in init script Package-Manager: Portage-2.3.5, Repoman-2.3.1
This commit is contained in:
parent
c91e78a0b6
commit
9505a3ceb0
4 changed files with 30 additions and 3 deletions
19
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.11.2-r1.init
Normal file
19
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.11.2-r1.init
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-gitaly"
|
||||
|
||||
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} ${LOFGILE}
|
||||
[ -z "${SOCKETDIR}" ] || checkpath -d -m 755 -o ${RUNAS_USER}:${RUNAS_GROUP} ${SOCKETDIR}
|
||||
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile /run/gitlab-gitaly.pid \
|
||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||
-- ${CONFIGFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gitlab-gitaly"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-gitaly --pidfile /run/gitlab-gitaly.pid --user ${RUNAS_USER}:${RUNAS_GROUP}
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue