snort.init 265 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. #PKG snort
  3. #INIT 60
  4. . /etc/rc.conf
  5. case $1 in
  6. autostop) ;;
  7. autostart)
  8. test x"${snort:-NO}" = x"NO" && exit 0
  9. exec sh $0 start
  10. ;;
  11. start)
  12. snort $snort_flags
  13. ;;
  14. stop)
  15. pkill snort
  16. ;;
  17. *)
  18. echo "usage: $0 {start | stop | restart}"
  19. exit 1
  20. esac
  21. exit $?