Merge branch 'master' into rorcz
[girocco.git] / xinetd / git
blob8fc4e9cf496b8b594e29faa6171a05832fa94591
1 # The equivalent inet.d configuration line (e.g. FreeBSD) would be:
2 # git stream tcp46 nowait/0/600/2 repo /home/repo/bin/git git daemon --inetd --verbose --enable=upload-archive --base-path=/srv/git --export-all
4 # NOTE: The user this runs as need NOT have write access.
5 #       This sample uses the "repo" user, but the user
6 #       "nobody" should work just as well.
8 # IMPORTANT: Git versions >= 1.8.4.2 and < 2.0.0
9 #            unfortunately require write permission into
10 #            the repository when serving a shallow clone!
11 #            YIKES!  (A shallow clone turd gets left
12 #            benind too.)  Advice is to use a version of
13 #            Git either BEFORE 1.8.4.2 or AT LEAST 2.0.0
14 #            to avoid this problem (and the turds).
16 service git
18   type        = UNLISTED
19   flags       = IPv6
20   socket_type = stream
21   protocol    = tcp
22   port        = 9418
23   wait        = no
24   user        = repo
25   server      = /home/repo/bin/git
26   server_args = daemon --inetd --verbose --enable=upload-archive --base-path=/srv/git --export-all
27   per_source  = 2
28   cps         = 10 5
29   max_load    = 12