gentoo-overlay/www-servers/gitaly/files/gitaly-0.10.0.init
Manuel Friedli beb1099918 www-servers/gitaly:
Add real ebuild for gitaly-0.10.0, base off the one from the gitlab overlay (v0.6.0)

Package-Manager: Portage-2.3.5, Repoman-2.3.1
2017-05-30 02:38:12 +02:00

20 lines
592 B
Plaintext

#!/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 $?
}