Created
July 11, 2015 14:04
-
-
Save matsimitsu/ac18fb557d543b2ca56a to your computer and use it in GitHub Desktop.
Matrioska init scropt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description "Matrioska" | |
| start on runlevel [2] | |
| stop on runlevel [016] | |
| env GOMAXPROCS=4 | |
| export GOMAXPROCS | |
| limit nofile 4096 8192 | |
| respawn # respawn the service if it dies | |
| respawn limit 5 10 # stop respawning if it fails 5 times in 10 seconds | |
| setuid cdn | |
| setgid cdn | |
| env PUBLIC_PATH=/home/cdn/public | |
| script | |
| exec /home/cdn/matrioska | |
| end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment