You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
328 B

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=95
STOP=10
REDIS_BIN="/usr/bin/redis-server"
REDIS_CONFIG="/etc/redis.conf"
REDIS_PID="/var/run/redis.pid"
REDIS_DATA="/var/lib/redis"
start_service() {
mkdir -p "$REDIS_DATA"
procd_open_instance redis
procd_set_param command "$REDIS_BIN" "$REDIS_CONFIG"
procd_close_instance
}