Created
December 26, 2011 09:14
-
-
Save alexindigo/1520795 to your computer and use it in GitHub Desktop.
Varnish upstart script
This file contains 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 "varnish daemon" | |
start on runlevel [2345] | |
stop on shutdown | |
expect fork | |
exec /usr/local/sbin/varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,64MB -T 127.0.0.1:2000 | |
respawn |
Thanx for the suggestion, I'm still in the dev mode, so it's good enough.
I'll take it into consideration for the prod setup.
You can do this with the limits stanza.
limit nofile 131072 131072
limit memlock 82000 82000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about this stuff from the actual Debian/Ubuntu init.d starter:
Doesn't seem your upstart takes any of that into consideration?