dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
etc/sv/cyclo-vote/run
@@ -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