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

  1. #!/bin/sh /etc/rc.common
  2. USE_PROCD=1
  3. START=95
  4. STOP=10
  5. REDIS_BIN="/usr/bin/redis-server"
  6. REDIS_CONFIG="/etc/redis.conf"
  7. REDIS_PID="/var/run/redis.pid"
  8. REDIS_DATA="/var/lib/redis"
  9. start_service() {
  10. mkdir -p "$REDIS_DATA"
  11. procd_open_instance redis
  12. procd_set_param command "$REDIS_BIN" "$REDIS_CONFIG"
  13. procd_close_instance
  14. }