gentoo-overlay/www-servers/gitlab-gitaly/files/gitlab-gitaly-0.10.0.init
Manuel Friedli fdee863c9a www-servers/gitlab-gitaly:
Rename gitaly -> gitlab-gitaly

Package-Manager: Portage-2.3.5, Repoman-2.3.1
2017-07-08 15:00:42 +02:00

19 lines
592 B
Text

#!/sbin/openrc-run
start() {
ebegin "Starting gitlab-gitaly"
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} ${LOFGILE}
[ -z "${SOCKETDIR}" ] || checkpath -d ${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 $?
}