Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
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.

24 lines
319 B

  1. #!/bin/ksh
  2. #
  3. # $OpenBSD: pflogd,v 1.3 2018/01/11 19:52:12 rpe Exp $
  4. daemon="/sbin/pflogd"
  5. . /etc/rc.d/rc.subr
  6. pexp="pflogd: \[priv\]"
  7. rc_pre() {
  8. if pfctl -si | grep -q Enabled; then
  9. ifconfig pflog0 create
  10. if ifconfig pflog0; then
  11. ifconfig pflog0 up
  12. else
  13. return 1
  14. fi
  15. else
  16. return 1
  17. fi
  18. }
  19. rc_cmd $1