Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
redis upstart
#!upstart
description "Redis Server"
env USER=redis
start on startup
stop on shutdown
respawn
exec sudo -u $USER sh -c "/usr/local/bin/redis-server \
/etc/redis-server.conf 2>&1 >> \
/var/log/redis/server.log"
pre-stop exec /usr/local/bin/redis-cli shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment