github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/install/inits/upstart/init/0.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 24 script 25 # When loading default and sysconfig files, we use `set -a` to make 26 # all variables automatically into environment variables. 27 set -a 28 [ -r /etc/default/tyk-gateway ] && . /etc/default/tyk-gateway 29 [ -r /etc/sysconfig/tyk-gateway ] && . /etc/sysconfig/tyk-gateway 30 set +a 31 exec chroot --userspec root:root / sh -c "cd /opt/tyk-gateway; exec /opt/tyk-gateway/tyk-python --conf /opt/tyk-gateway/tyk.conf" >> /var/log/tyk-gateway.stdout 2>> /var/log/tyk-gateway.stderr 32 end script