From ef74a9f93af8017c2dc88cb8f14805dcc1023156 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Mon, 1 Sep 2014 23:45:39 +0200 Subject: [PATCH] Correction : cyclo-vote log. --- etc/sv/cyclo-vote/log/run | 5 +++-- etc/sv/cyclo-vote/run | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/sv/cyclo-vote/log/run b/etc/sv/cyclo-vote/log/run index c5659b2..4b1ff7d 100644 --- a/etc/sv/cyclo-vote/log/run +++ b/etc/sv/cyclo-vote/log/run @@ -1,8 +1,9 @@ #!/bin/sh -eux sv=${PWD%/log} sv=${sv#/etc/sv/} -eval home="~log-$sv" +user=log-www-"$sv" +eval home="~$user/../sv" cd "$home" -exec chpst -u log-"$sv":log-"$sv":fanout \ +exec chpst -u "$user":"$user" \ svlogd -v -tt "$home" diff --git a/etc/sv/cyclo-vote/run b/etc/sv/cyclo-vote/run index f040d77..006fcb4 100755 --- a/etc/sv/cyclo-vote/run +++ b/etc/sv/cyclo-vote/run @@ -7,4 +7,4 @@ eval home=~"$user" cd "$home" exec /usr/bin/chpst \ -u "$user":"$user" \ - gunicorn -w 4 -b 127.0.0.1:5000 main:app + gunicorn -w 4 -b 127.0.0.1:5000 --log-level=debug "$@" main:app -- 2.20.1