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.init | |
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.init')
-rwxr-xr-x | extra/stackbin.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/stackbin.init b/extra/stackbin.init index a8cd25e..057c793 100755 --- a/extra/stackbin.init +++ b/extra/stackbin.init @@ -19,11 +19,12 @@ DAEMON=/usr/sbin/stackbin.bin DESC="stackbin" NAME=stackbin PATH=/sbin:/usr/sbin:/bin:/usr/bin -PIDFILE2=/var/run/$NAME-wsgi.pid +PIDFILE2=/var/$NAME/$NAME-wsgi.pid PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME USER=stackbin WSGIBIN=uwsgi_python39 +export STACKBIN_WSGI_INI=/etc/stackbin.wsgi.ini # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 |