From a3027bd256133a739dc5ea6002349fdf61cd6e67 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 22 Oct 2010 23:02:56 +0200 Subject: add xinetd based service --- files/xinetd.d/git | 16 ++++++++++++++++ files/xinetd.d/git.disabled | 16 ++++++++++++++++ files/xinetd.d/git.vhosts | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 files/xinetd.d/git create mode 100644 files/xinetd.d/git.disabled create mode 100644 files/xinetd.d/git.vhosts (limited to 'files') diff --git a/files/xinetd.d/git b/files/xinetd.d/git new file mode 100644 index 0000000..64c53e8 --- /dev/null +++ b/files/xinetd.d/git @@ -0,0 +1,16 @@ +# default: off +# description: The git dæmon allows git repositories to be exported using +# the git:// protocol. + +service git +{ + disable = no + socket_type = stream + wait = no + user = nobody + server = /usr/bin/git-daemon + server_args = --base-path=/srv/git --export-all --user-path=public_git --syslog --inetd --verbose + log_on_failure += USERID +# xinetd doesn't do this by default. bug #195265 + flags = IPv6 +} diff --git a/files/xinetd.d/git.disabled b/files/xinetd.d/git.disabled new file mode 100644 index 0000000..dcfae91 --- /dev/null +++ b/files/xinetd.d/git.disabled @@ -0,0 +1,16 @@ +# default: off +# description: The git dæmon allows git repositories to be exported using +# the git:// protocol. + +service git +{ + disable = yes + socket_type = stream + wait = no + user = nobody + server = /usr/bin/git-daemon + server_args = --base-path=/srv/git --export-all --user-path=public_git --syslog --inetd --verbose + log_on_failure += USERID +# xinetd doesn't do this by default. bug #195265 + flags = IPv6 +} diff --git a/files/xinetd.d/git.vhosts b/files/xinetd.d/git.vhosts new file mode 100644 index 0000000..9893820 --- /dev/null +++ b/files/xinetd.d/git.vhosts @@ -0,0 +1,16 @@ +# default: off +# description: The git dæmon allows git repositories to be exported using +# the git:// protocol. + +service git +{ + disable = no + socket_type = stream + wait = no + user = nobody + server = /usr/bin/git-daemon + server_args = --interpolated-path=/srv/git/%H/%D --syslog --inetd --verbose + log_on_failure += USERID +# xinetd doesn't do this by default. bug #195265 + flags = IPv6 +} -- cgit v1.2.3