Skip to content

Commit

Permalink
Make sure we log gunicorn st2api,st2auth,st2stream errors to a log file.
Browse files Browse the repository at this point in the history
Previously they were simply ignored.
  • Loading branch information
Kami committed Apr 8, 2019
1 parent 0bf2076 commit 7ed01d6
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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.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.gunicorn.error.log"
EnvironmentFile=-/etc/sysconfig/st2stream
ExecStart=/opt/stackstorm/st2/bin/gunicorn st2stream.wsgi:application $DAEMON_ARGS
TimeoutSec=60
Expand Down

0 comments on commit 7ed01d6

Please sign in to comment.