Last active
August 29, 2015 14:05
-
-
Save jgeiger/95f124f671aa876fe33b to your computer and use it in GitHub Desktop.
Redis upstart conf
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 "Redis Server" | |
author "Thomas Woolford <[email protected]>" | |
# 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