redis.rc 343 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # $OpenBSD: redis.rc,v 1.5 2015/07/15 16:15:35 ajacoutot Exp $
  4. daemon="${TRUEPREFIX}/sbin/redis-server"
  5. daemon_flags="${SYSCONFDIR}/redis/redis.conf"
  6. daemon_user="_redis"
  7. . /etc/rc.d/rc.subr
  8. pexp="redis-server: ${daemon} .*"
  9. rc_reload=NO
  10. rc_pre() {
  11. /usr/bin/install -d -o _redis -g _redis -m 0750 /var/run/redis
  12. }
  13. rc_cmd $1