I edited this gist which is a redis init.d script used to start and stop a redis server. I edited it so that the redis server could be installed anywhere in the PATH given and so that it uses the redis-cli to send the server the SHUTDOWN command. You'll need to set daemonize to "on" in your redis.conf so that redis daemonizes properly.