1
0

snort.init 295 B

12345678910111213141516171819202122
  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. /usr/sbin/snort $snort_flags
  13. ;;
  14. stop)
  15. kill $(pgrep -f /usr/sbin/snort)
  16. ;;
  17. *)
  18. echo "usage: $0 {start | stop | restart}"
  19. exit 1
  20. esac
  21. exit $?