snort.init 257 B

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