From 1f7d526ae02689e645426cd130e9cb1f4a0bf4aa Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sat, 16 Mar 2013 01:06:58 +0100 Subject: [PATCH] Ajout : vm_hosted : rule_xinetd_configure . --- etc/xinetd.d/git | 21 +++++++++++++++++++++ vm_hosted | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 etc/xinetd.d/git diff --git a/etc/xinetd.d/git b/etc/xinetd.d/git new file mode 100644 index 0000000..2501692 --- /dev/null +++ b/etc/xinetd.d/git @@ -0,0 +1,21 @@ +service git + { + disable = no + env = + group = git-daemon + groups = no + id = git + instances = 5 + log_on_failure += HOST + log_on_success += PID HOST DURATION + max_load = 5 + passenv = + port = 9418 + protocol = tcp + server = /usr/bin/git + server_args = daemon --inetd --verbose --base-path=/home/git/pub/git --interpolated-path=/home/git/srv/git/%H%D --syslog --user-path=pub/git -- /home/git/pub/git + socket_type = stream + type = UNLISTED + user = git-daemon + wait = no + } diff --git a/vm_hosted b/vm_hosted index eb6869f..f63df93 100755 --- a/vm_hosted +++ b/vm_hosted @@ -1285,6 +1285,17 @@ rule_user_root_configure () { do sudo gpg --import "$key" done } +rule_xinetd_configure () { + rule apt_get_install xinetd + local -; set +f + for conf in "$tool"/etc/xinetd.d/* + do conf=${conf#"$tool"/etc/xinetd.d/} + sudo install -m 660 -o root -g root \ + "$tool"/etc/xinetd.d/"$conf" \ + /etc/xinetd.d/"$conf" + done + sudo service xinetd restart + } rule_configure () { rule apt_configure rule git_configure @@ -1304,6 +1315,7 @@ rule_configure () { rule nginx_configure rule php5_fpm_configure rule gitolite_configure + rule xinetd_configure } rule_luks_key_change () { -- 2.20.1