Skip to content

Instantly share code, notes, and snippets.

@jgeiger
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgeiger/95f124f671aa876fe33b to your computer and use it in GitHub Desktop.
Save jgeiger/95f124f671aa876fe33b to your computer and use it in GitHub Desktop.
Redis upstart conf
description "Redis Server"
author "Thomas Woolford <thomas@urpages.com.au>"
# run when the local FS becomes available
start on local-filesystems
stop on shutdown
# The default redis conf has `daemonize = yes` and will naiively fork itself.
expect fork
# Respawn unless redis dies 10 times in 5 seconds
respawn
respawn limit 10 5
# run redis with the correct config file for this instance
exec /usr/local/bin/redis-server /etc/redis/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment