allow for uclibc-ng
[openadk.git] / package / snort / files / snort.init
blob13a5e302cda3cac46992430c70206939325281df
1 #!/bin/sh
2 #PKG snort
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${snort:-NO}" = x"NO" && exit 0
10 test x"$snort" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 /usr/sbin/snort $snort_flags
16 stop)
17 kill $(pgrep -f /usr/sbin/snort)
20 echo "usage: $0 {start | stop | restart}"
21 exit 1
22 esac
23 exit $?