Ajout : cyclo-vote.
[lhc/ateliers.git] / etc / sv / cyclo-vote / run
diff --git a/etc/sv/cyclo-vote/run b/etc/sv/cyclo-vote/run
new file mode 100755 (executable)
index 0000000..f040d77
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -eux
+exec 2>&1
+sv=${PWD#/etc/sv/}
+user=www-"$sv"
+eval home=~"$user"
+
+cd "$home"
+exec /usr/bin/chpst \
+ -u "$user":"$user" \
+ gunicorn -w 4 -b 127.0.0.1:5000 main:app