diff options
author | B Stack <bgstack15@gmail.com> | 2020-12-09 20:41:48 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-12-09 20:41:48 -0500 |
commit | 4bb2b214f0967796293bb6b563f4fe557863eeff (patch) | |
tree | 9da66b5e45f581281ee9953c486950d37430851a /config/hex-zero.conf.example | |
parent | use uwsgi! (diff) | |
download | hex-zero-4bb2b214f0967796293bb6b563f4fe557863eeff.tar.gz hex-zero-4bb2b214f0967796293bb6b563f4fe557863eeff.tar.bz2 hex-zero-4bb2b214f0967796293bb6b563f4fe557863eeff.zip |
fix init script and pidfile ownership
By running everything as root and telling uwsgi to run as a user,
we can accomplish everything we need with pidfile ownership,
service execution, and hex-zero operation
Diffstat (limited to 'config/hex-zero.conf.example')
-rw-r--r-- | config/hex-zero.conf.example | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/hex-zero.conf.example b/config/hex-zero.conf.example index 2e7ffa0..71d93e3 100644 --- a/config/hex-zero.conf.example +++ b/config/hex-zero.conf.example @@ -55,6 +55,7 @@ WSGI_LOGGING = { 'stream': 'ext://flask.logging.wsgi_errors_stream', 'formatter': 'default' }, + # file handler is only useful when running in debug mode. The shell script actually calls the uwsgi server with the right attributes to log to a file. 'file': { 'class': 'logging.handlers.RotatingFileHandler', 'formatter': 'default', @@ -65,6 +66,6 @@ WSGI_LOGGING = { }, 'root': { 'level': 'INFO', - 'handlers': ['file'] + 'handlers': ['file','wsgi'] }, } |