Skip to content

Commit

Permalink
Merge pull request #607 from StackStorm/fix_gunicorn_no_error_log
Browse files Browse the repository at this point in the history
Log gunicorn errors to API service log file
  • Loading branch information
Kami authored Apr 11, 2019
2 parents 0bf2076 + fe50ab8 commit 2dcc33a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/st2/debian/st2.st2api.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kill timeout 60

script
NAME=st2api
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf --error-logfile /var/log/st2/st2api.log"

# Read configuration variable file if it is present
set -o allexport
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/debian/st2.st2auth.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kill timeout 60

script
NAME=st2auth
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf --error-logfile /var/log/st2/st2auth.log"

# Read configuration variable file if it is present
set -o allexport
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/debian/st2.st2stream.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kill timeout 60

script
NAME=st2stream
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf --error-logfile /var/log/st2/st2stream.log"

# Read configuration variable file if it is present
set -o allexport
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/debian/st2api.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2api.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf --error-logfile /var/log/st2/st2api.log"
EnvironmentFile=-/etc/default/st2api
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2api.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/debian/st2auth.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2auth.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf --error-logfile /var/log/st2/st2auth.log"
EnvironmentFile=-/etc/default/st2auth
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2auth.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/debian/st2stream.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2stream.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf --error-logfile /var/log/st2/st2stream.log"
EnvironmentFile=-/etc/default/st2stream
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2stream.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2api.init
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DESC="st2api"
NAME=st2api
DAEMON=/opt/stackstorm/st2/bin/gunicorn
PIDFILE=/var/run/st2/$NAME.pid
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf --pid ${PIDFILE}"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf --error-logfile /var/log/st2/st2api.log --pid ${PIDFILE}"
RUNAS_USER="st2"

lockfile=/var/lock/subsys/$NAME
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2api.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2api.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.api.gunicorn.conf --error-logfile /var/log/st2/st2api.log"
EnvironmentFile=-/etc/sysconfig/st2api
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2api.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2auth.init
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DESC="st2auth"
NAME=st2auth
DAEMON=/opt/stackstorm/st2/bin/gunicorn
PIDFILE=/var/run/st2/$NAME.pid
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf --pid ${PIDFILE}"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf --error-logfile /var/log/st2/st2auth.log --pid ${PIDFILE}"
RUNAS_USER="st2"

lockfile=/var/lock/subsys/$NAME
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2auth.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2auth.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.auth.gunicorn.conf --error-logfile /var/log/st2/st2auth.log"
EnvironmentFile=-/etc/sysconfig/st2auth
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2auth.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2stream.init
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DESC="st2stream"
NAME=st2stream
DAEMON=/opt/stackstorm/st2/bin/gunicorn
PIDFILE=/var/run/st2/$NAME.pid
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf --pid ${PIDFILE}"
DAEMON_ARGS="-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf --error-logfile /var/log/st2/st2stream.log --pid ${PIDFILE}"
RUNAS_USER="st2"

lockfile=/var/lock/subsys/$NAME
Expand Down
2 changes: 1 addition & 1 deletion packages/st2/rpm/st2stream.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=st2stream.socket
Type=simple
User=st2
Group=st2
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf"
Environment="DAEMON_ARGS=-k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --log-config /etc/st2/logging.stream.gunicorn.conf --error-logfile /var/log/st2/st2stream.log"
EnvironmentFile=-/etc/sysconfig/st2stream
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2stream.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down

0 comments on commit 2dcc33a

Please # to comment.