www-servers/gitlab-gitaly:
Add ebuild for version 0.66.0 Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
parent
355550f6b8
commit
e233c14c0f
6 changed files with 125 additions and 1 deletions
20
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.66.0.init
Normal file
20
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.66.0.init
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-gitaly"
|
||||
|
||||
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} "${LOGFILE}"
|
||||
checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "$(dirname ${PIDFILE})"
|
||||
[ -z "${SOCKETDIR}" ] || checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "${SOCKETDIR}"
|
||||
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile "${PIDFILE}" \
|
||||
--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 "${PIDFILE}" --user ${RUNAS_USER}:${RUNAS_GROUP}
|
||||
eend $?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue