Skip to content

Instantly share code, notes, and snippets.

View logemann's full-sized avatar

Marc Logemann logemann

View GitHub Profile
@logemann
logemann / redis_init_file
Created October 5, 2011 12:55
redis init script w/ checkconfig ready
#!/bin/sh
#
# chkconfig: 2345 89 60
# description: Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.
# processname: redis
#
REDISPORT=6379
EXEC=/usr/local/bin/redis-server
CLIEXEC=/usr/local/bin/redis-cli
@logemann
logemann / redis-server-for-init.d-startup
Created October 4, 2011 13:05 — forked from lsbardel/redis-server-for-init.d-startup
Init.d Redis script for Ubuntu
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db