Skip to content

Instantly share code, notes, and snippets.

@skt-bford
skt-bford / redis.init.sh
Last active December 13, 2015 19:29 — forked from ponych/redisctl
#!/bin/sh
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
#!/usr/bin/env bash
# requirements
yum -y install wget
# repository
cd /usr/local/src
wget https://gist.github.com/skt-bford/4961513/raw/epel.setup.sh
sh epel.setup.sh
rm epel.setup.sh