diff options
author | B Stack <bgstack15@gmail.com> | 2022-02-15 10:19:09 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2022-02-15 10:22:01 -0500 |
commit | 1a0fbf8853496ac8725e58a1e905fb0fffc5093e (patch) | |
tree | 805bbfde5d58859ff37b03c76fc8280e59040b02 /extra/stackbin.service | |
parent | update doc (diff) | |
download | stackbin-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.service | 6 |
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 |