diff --git a/packages/st2/debian/st2.st2api.upstart b/packages/st2/debian/st2.st2api.upstart index b4b0b154..4f46e53e 100644 --- a/packages/st2/debian/st2.st2api.upstart +++ b/packages/st2/debian/st2.st2api.upstart @@ -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 diff --git a/packages/st2/debian/st2.st2auth.upstart b/packages/st2/debian/st2.st2auth.upstart index 2e0f7ca5..b3ee7ea3 100644 --- a/packages/st2/debian/st2.st2auth.upstart +++ b/packages/st2/debian/st2.st2auth.upstart @@ -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 diff --git a/packages/st2/debian/st2.st2stream.upstart b/packages/st2/debian/st2.st2stream.upstart index e8e83ac6..4c58345f 100644 --- a/packages/st2/debian/st2.st2stream.upstart +++ b/packages/st2/debian/st2.st2stream.upstart @@ -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 diff --git a/packages/st2/debian/st2api.service b/packages/st2/debian/st2api.service index 7d7ca502..1921126d 100644 --- a/packages/st2/debian/st2api.service +++ b/packages/st2/debian/st2api.service @@ -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 diff --git a/packages/st2/debian/st2auth.service b/packages/st2/debian/st2auth.service index 9c51f5a1..54420192 100644 --- a/packages/st2/debian/st2auth.service +++ b/packages/st2/debian/st2auth.service @@ -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 diff --git a/packages/st2/debian/st2stream.service b/packages/st2/debian/st2stream.service index 6ac666d8..ade3ba5d 100644 --- a/packages/st2/debian/st2stream.service +++ b/packages/st2/debian/st2stream.service @@ -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 diff --git a/packages/st2/rpm/st2api.init b/packages/st2/rpm/st2api.init index 420abf95..8dd5d0a9 100644 --- a/packages/st2/rpm/st2api.init +++ b/packages/st2/rpm/st2api.init @@ -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 diff --git a/packages/st2/rpm/st2api.service b/packages/st2/rpm/st2api.service index ed866615..1b59b9b9 100644 --- a/packages/st2/rpm/st2api.service +++ b/packages/st2/rpm/st2api.service @@ -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 diff --git a/packages/st2/rpm/st2auth.init b/packages/st2/rpm/st2auth.init index dd4aee71..ed7cf927 100644 --- a/packages/st2/rpm/st2auth.init +++ b/packages/st2/rpm/st2auth.init @@ -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 diff --git a/packages/st2/rpm/st2auth.service b/packages/st2/rpm/st2auth.service index 389444c6..260a7853 100644 --- a/packages/st2/rpm/st2auth.service +++ b/packages/st2/rpm/st2auth.service @@ -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 diff --git a/packages/st2/rpm/st2stream.init b/packages/st2/rpm/st2stream.init index c300ffb7..3e012215 100644 --- a/packages/st2/rpm/st2stream.init +++ b/packages/st2/rpm/st2stream.init @@ -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 diff --git a/packages/st2/rpm/st2stream.service b/packages/st2/rpm/st2stream.service index 0c52dd32..742cc203 100644 --- a/packages/st2/rpm/st2stream.service +++ b/packages/st2/rpm/st2stream.service @@ -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