X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fcyclo_paris_est__openerp%2Fconfigure.sh;h=b5e74c6936beee7a69a4dd4cc408e2ad8b199598;hb=22f04b9fac14adc3d3fc98273ba126c3a51792c3;hp=9bc9d122ee937cdd3f86b337fef0f3e4adf9bc3d;hpb=0aaa913d6dafd918d9320bc3daa3c49f8f0a88f6;p=lhc%2Fateliers.git diff --git a/etc/sv/cyclo_paris_est__openerp/configure.sh b/etc/sv/cyclo_paris_est__openerp/configure.sh index 9bc9d12..b5e74c6 100644 --- a/etc/sv/cyclo_paris_est__openerp/configure.sh +++ b/etc/sv/cyclo_paris_est__openerp/configure.sh @@ -1,12 +1,21 @@ -eval "local home=/home/$sv" -cd / -case $(sudo sv status postgres || true) in - (run:*);; - (*) set -$- "$@" "$sv"; continue=yes; continue;; - esac -case $(sudo sv status "$sv" || true) in - (run:*) sudo sv stop "$sv";; - esac +home=/home/"$sv" + +rule _runit_sv_configure postgres +rule _runit_sv_start postgres +while ! sudo -u postgres psql