|
|
# Distributed under the terms of the GNU General Public License v2 | # 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.3 2008/09/16 17:52:15 robbat2 Exp $ | # $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.3 2008/09/16 17:52:15 robbat2 Exp $ |
| |
|
PIDFILE=${PIDFILE:-/var/run/git-daemon.pid} |
|
|
depend() { | depend() { |
need net | need net |
use logger | use logger |
|
|
| |
start() { | start() { |
ebegin "Starting git-daemon" | ebegin "Starting git-daemon" |
start-stop-daemon --start --quiet --background \ |
start-stop-daemon --start --background \ |
--exec /usr/bin/git -- daemon ${GITDAEMON_OPTS} |
--exec /usr/bin/git --pidfile "${PIDFILE}" \ |
|
-- daemon --pid-file="${PIDFILE}" ${GITDAEMON_OPTS} |
eend $? | eend $? |
} | } |
| |
stop() { | stop() { |
ebegin "Stopping git-daemon" | ebegin "Stopping git-daemon" |
start-stop-daemon --stop --quiet --name git-daemon |
start-stop-daemon --stop --pidfile "${PIDFILE}" |
eend $? | eend $? |
} | } |