Skip to content

Instantly share code, notes, and snippets.

@kaemiin
kaemiin / redis-server
Created November 20, 2015 09:35
A redis-server startup script that allows redis-server to run as a non-root user (modified from one of the many other scripts already done). Ensure that the redis files and directories in your redis.conf file has the proper permissions.
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 234 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid