Lines 3-8
Link Here
|
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.3 2008/09/16 17:52:15 robbat2 Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.3 2008/09/16 17:52:15 robbat2 Exp $ |
5 |
|
5 |
|
|
|
6 |
PIDFILE=${PIDFILE:-/var/run/git-daemon.pid} |
7 |
|
6 |
depend() { |
8 |
depend() { |
7 |
need net |
9 |
need net |
8 |
use logger |
10 |
use logger |
Lines 10-22
Link Here
|
10 |
|
12 |
|
11 |
start() { |
13 |
start() { |
12 |
ebegin "Starting git-daemon" |
14 |
ebegin "Starting git-daemon" |
13 |
start-stop-daemon --start --quiet --background \ |
15 |
start-stop-daemon --start --background \ |
14 |
--exec /usr/bin/git -- daemon ${GITDAEMON_OPTS} |
16 |
--exec /usr/bin/git --pidfile "${PIDFILE}" \ |
|
|
17 |
-- daemon --pid-file="${PIDFILE}" ${GITDAEMON_OPTS} |
15 |
eend $? |
18 |
eend $? |
16 |
} |
19 |
} |
17 |
|
20 |
|
18 |
stop() { |
21 |
stop() { |
19 |
ebegin "Stopping git-daemon" |
22 |
ebegin "Stopping git-daemon" |
20 |
start-stop-daemon --stop --quiet --name git-daemon |
23 |
start-stop-daemon --stop --pidfile "${PIDFILE}" |
21 |
eend $? |
24 |
eend $? |
22 |
} |
25 |
} |