From: Julien Moutinho Date: Thu, 11 Apr 2013 17:37:01 +0000 (+0200) Subject: Correction : vm_hosted : runit : dépendences de démarrage. X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=840d2b430a302b020d17d1c4c23df9b48278f8b2 Correction : vm_hosted : runit : dépendences de démarrage. --- diff --git a/etc/sv/cyclo_paris_est__openerp/run b/etc/sv/cyclo_paris_est__openerp/run index 074e16b..f930bc6 100755 --- a/etc/sv/cyclo_paris_est__openerp/run +++ b/etc/sv/cyclo_paris_est__openerp/run @@ -1,6 +1,7 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start postgres eval "home=~$sv" exec /usr/bin/chpst \ -u "$sv":"$sv":"$sv"-addon:postgres-data \ diff --git a/etc/sv/dovecot/run b/etc/sv/dovecot/run index 2cc2dd4..97b85ea 100755 --- a/etc/sv/dovecot/run +++ b/etc/sv/dovecot/run @@ -1,6 +1,7 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start postfix exec /usr/sbin/dovecot \ -c /etc/dovecot/dovecot.conf \ -F diff --git a/etc/sv/lhc-remorque/run b/etc/sv/lhc-remorque/run index 3f78af2..23bfe9e 100755 --- a/etc/sv/lhc-remorque/run +++ b/etc/sv/lhc-remorque/run @@ -1,6 +1,7 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start sshd exec /usr/bin/spawn-fcgi \ -u fcgi-"$sv" \ -g fcgi-"$sv" \ diff --git a/etc/sv/nginx/run b/etc/sv/nginx/run index 78e1efb..4cb7f40 100755 --- a/etc/sv/nginx/run +++ b/etc/sv/nginx/run @@ -1,6 +1,10 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start \ + lhc-remorque \ + gitweb \ + php5-fpm exec /usr/sbin/nginx \ -c /etc/nginx/nginx.conf \ -g 'daemon off;' diff --git a/etc/sv/postfix/run b/etc/sv/postfix/run index 3088a77..f07ffa1 100755 --- a/etc/sv/postfix/run +++ b/etc/sv/postfix/run @@ -1,6 +1,7 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start postgrey command_directory=/usr/sbin \ config_directory=/etc/postfix \ diff --git a/etc/sv/unbound/run b/etc/sv/unbound/run index e157a92..79856ca 100755 --- a/etc/sv/unbound/run +++ b/etc/sv/unbound/run @@ -1,6 +1,7 @@ #!/bin/sh -eux exec 2>&1 sv=${PWD#/etc/sv/} +/usr/bin/sv -w 3 start nsd3 exec /usr/sbin/unbound \ -c /etc/unbound/unbound.conf \ -d