rmilter.rc 365 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # $OpenBSD: rmilter.rc,v 1.1.1.1 2016/12/02 14:57:41 sthen Exp $
  4. daemon="${TRUEPREFIX}/sbin/rmilter"
  5. daemon_flags="-c ${SYSCONFDIR}/rmilter/rmilter.conf"
  6. daemon_user="_rmilter"
  7. . /etc/rc.d/rc.subr
  8. rc_pre() {
  9. /usr/bin/install -d -o ${daemon_user} /var/run/rmilter
  10. }
  11. rc_reload() {
  12. pkill -USR1 -T "${daemon_rtable}" -xf "${pexp}"
  13. }
  14. rc_cmd $1