Correction : cyclo-vote log.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Mon, 1 Sep 2014 21:45:39 +0000 (23:45 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Mon, 1 Sep 2014 21:45:39 +0000 (23:45 +0200)
etc/sv/cyclo-vote/log/run
etc/sv/cyclo-vote/run

index c5659b2..4b1ff7d 100644 (file)
@@ -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"
index f040d77..006fcb4 100755 (executable)
@@ -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