From a80e656be637446872c9ccfe8ecc3335ca0cef18 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 17 Sep 2009 16:54:34 +0000 Subject: new git version I need it for the new cgit --- dev-util/git/files/git-daemon.initd | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dev-util/git/files/git-daemon.initd (limited to 'dev-util/git/files/git-daemon.initd') diff --git a/dev-util/git/files/git-daemon.initd b/dev-util/git/files/git-daemon.initd new file mode 100644 index 0000000..726fca5 --- /dev/null +++ b/dev-util/git/files/git-daemon.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.6 2008/11/27 20:33:34 robbat2 Exp $ + +PIDFILE=/var/run/git-daemon.pid + +depend() { + need net + use logger +} + +start() { + [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon" + ebegin "Starting git-daemon" + start-stop-daemon --start --quiet --background \ + --pidfile ${PIDFILE} ${BL1_COMPAT} \ + --exec /usr/bin/git -- daemon \ + --pid-file=${PIDFILE} \ + --user=${GIT_USER} --group=${GIT_GROUP} \ + ${GITDAEMON_OPTS} + eend $? +} + +stop() { + ebegin "Stopping git-daemon" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? +} -- cgit v1.2.3