aboutsummaryrefslogtreecommitdiff
path: root/uwsgi-app@.service
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-03-27 23:08:20 +0900
committerjaseg <git@jaseg.net>2019-03-27 23:08:20 +0900
commit295302ba9420e7b83e5053ea45d14601c1312e3f (patch)
tree8573378bdd2f596d660935f391a31db28782b39c /uwsgi-app@.service
parent6a90803ae6da0759723deda24d746d18e2fb8b8c (diff)
downloadinfra-295302ba9420e7b83e5053ea45d14601c1312e3f.tar.gz
infra-295302ba9420e7b83e5053ea45d14601c1312e3f.tar.bz2
infra-295302ba9420e7b83e5053ea45d14601c1312e3f.zip
Deployment to digitalocean works
Diffstat (limited to 'uwsgi-app@.service')
-rw-r--r--uwsgi-app@.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/uwsgi-app@.service b/uwsgi-app@.service
new file mode 100644
index 0000000..61bf1e4
--- /dev/null
+++ b/uwsgi-app@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=%i uWSGI app
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/uwsgi \
+ --ini /etc/uwsgi.d/%i.ini \
+ --socket /run/uwsgi/%i.socket
+User=uwsgi-%i
+Group=uwsgi
+Restart=on-failure
+KillSignal=SIGQUIT
+Type=notify
+StandardError=syslog
+NotifyAccess=all