aboutsummaryrefslogtreecommitdiff
path: root/extra/stackbin.service
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2022-02-15 10:19:09 -0500
committerB Stack <bgstack15@gmail.com>2022-02-15 10:22:01 -0500
commit1a0fbf8853496ac8725e58a1e905fb0fffc5093e (patch)
tree805bbfde5d58859ff37b03c76fc8280e59040b02 /extra/stackbin.service
parentupdate doc (diff)
downloadstackbin-1a0fbf8853496ac8725e58a1e905fb0fffc5093e.tar.gz
stackbin-1a0fbf8853496ac8725e58a1e905fb0fffc5093e.tar.bz2
stackbin-1a0fbf8853496ac8725e58a1e905fb0fffc5093e.zip
fix wsgi pidfile, user homedir, and INI loading
Diffstat (limited to 'extra/stackbin.service')
-rw-r--r--extra/stackbin.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/stackbin.service b/extra/stackbin.service
index a2ef4b9..d2aad39 100644
--- a/extra/stackbin.service
+++ b/extra/stackbin.service
@@ -4,14 +4,14 @@ Wants=network-online.target
After=network.target syslog.target
[Service]
-#Environment=
-WorkingDirectory=/var/www
+Environment=STACKBIN_WSGI_INI=/etc/stackbin.wsgi.ini
+WorkingDirectory=/var/stackbin
User=stackbin
Group=stackbin
Type=simple
ExecStart=/usr/sbin/stackbin.bin
TimeoutStartSec=120
-ExecStop=/usr/sbin/uwsgi --stop /var/run/stackbin-wsgi.pid
+ExecStop=/usr/sbin/uwsgi --stop /var/stackbin/stackbin-wsgi.pid
RestartSec=15
Restart=always
KillSignal=SIGINT
bgstack15