Skip to content

Instantly share code, notes, and snippets.

@kimlindholm
Created February 13, 2012 18:33
Show Gist options
  • Save kimlindholm/1818886 to your computer and use it in GitHub Desktop.
Save kimlindholm/1818886 to your computer and use it in GitHub Desktop.
Daemontools run script for starting Varnish
#!/bin/sh
# Daemontools run script for starting Varnish
exec 2>&1
exec echo | mail -s "Varnish in Tokyo restarting" [email protected]
exec varnishd -F -s malloc,130M -u nobody -g nobody -p cli_timeout=30 \
-p thread_pool_add_delay=2 -p thread_pool_min=400 -p thread_pool_max=4000 \
-p session_linger=100 -f /etc/varnish/varnish.tokyo.vcl -T 127.0.0.1:2000 \
-a 0.0.0.0:80
@kimlindholm
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment