/[gentoo-x86]/dev-vcs/git/files/git-daemon.initd
Gentoo

Contents of /dev-vcs/git/files/git-daemon.initd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 17 15:13:27 2010 UTC (4 years, 4 months ago) by sping
Branch: MAIN
CVS Tags: HEAD
dev-vcs/git: New package (copied from dev-util/git)
(Portage version: 2.2_rc67/cvs/Linux i686, RepoMan options: --force)

1 #!/sbin/runscript
2 # Copyright 1999-2008 Gentoo Foundation
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.6 2008/11/27 20:33:34 robbat2 Exp $
5
6 PIDFILE=/var/run/git-daemon.pid
7
8 depend() {
9 need net
10 use logger
11 }
12
13 start() {
14 [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"
15 ebegin "Starting git-daemon"
16 start-stop-daemon --start --quiet --background \
17 --pidfile ${PIDFILE} ${BL1_COMPAT} \
18 --exec /usr/bin/git -- daemon \
19 --pid-file=${PIDFILE} \
20 --user=${GIT_USER} --group=${GIT_GROUP} \
21 ${GITDAEMON_OPTS}
22 eend $?
23 }
24
25 stop() {
26 ebegin "Stopping git-daemon"
27 start-stop-daemon --stop --quiet \
28 --pidfile ${PIDFILE}
29 eend $?
30 }

  ViewVC Help
Powered by ViewVC 1.1.20