github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/install/inits/upstart/init/1.x/tyk-gateway-python.conf (about) 1 description "Tyk API Gateway (Python)" 2 start on filesystem or runlevel [2345] 3 stop on runlevel [!2345] 4 5 respawn 6 umask 022 7 #nice 8 chroot / 9 chdir /opt/tyk-gateway/ 10 #limit core <softlimit> <hardlimit> 11 #limit cpu <softlimit> <hardlimit> 12 #limit data <softlimit> <hardlimit> 13 #limit fsize <softlimit> <hardlimit> 14 #limit memlock <softlimit> <hardlimit> 15 #limit msgqueue <softlimit> <hardlimit> 16 #limit nice <softlimit> <hardlimit> 17 #limit nofile <softlimit> <hardlimit> 18 #limit nproc <softlimit> <hardlimit> 19 #limit rss <softlimit> <hardlimit> 20 #limit rtprio <softlimit> <hardlimit> 21 #limit sigpending <softlimit> <hardlimit> 22 #limit stack <softlimit> <hardlimit> 23 setuid root 24 setgid root 25 console log # log stdout/stderr to /var/log/upstart/ 26 27 script 28 # When loading default and sysconfig files, we use `set -a` to make 29 # all variables automatically into environment variables. 30 set -a 31 [ -r /etc/default/tyk-gateway ] && . /etc/default/tyk-gateway 32 [ -r /etc/sysconfig/tyk-gateway ] && . /etc/sysconfig/tyk-gateway 33 set +a 34 exec /opt/tyk-gateway/tyk --conf=/opt/tyk-gateway/tyk.conf 35 end script