Skip to content

Commit c51901d

Browse files
vonbrandJunio C Hamano
authored andcommitted
Add example xinetd(8) configuration to Documentation/everyday.txt
Many Linux distributions use xinetd(8), not inetd(8). Give a sample configuration file. Signed-off-by: Horst H. von Brand <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent eff97e3 commit c51901d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Documentation/everyday.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,29 @@ git stream tcp nowait nobody \
377377
+
378378
The actual configuration line should be on one line.
379379

380+
Run git-daemon to serve /pub/scm from xinetd.::
381+
+
382+
------------
383+
$ cat /etc/xinetd.d/git-daemon
384+
# default: off
385+
# description: The git server offers access to git repositories
386+
service git
387+
{
388+
disable = no
389+
type = UNLISTED
390+
port = 9418
391+
socket_type = stream
392+
wait = no
393+
user = nobody
394+
server = /usr/bin/git-daemon
395+
server_args = --inetd --syslog --export-all --base-path=/pub/scm
396+
log_on_failure += USERID
397+
}
398+
------------
399+
+
400+
Check your xinetd(8) documentation and setup, this is from a Fedora system.
401+
Others might be different.
402+
380403
Give push/pull only access to developers.::
381404
+
382405
------------

0 commit comments

Comments
 (0)