diff options
Diffstat (limited to 'package/ulogd/files')
-rw-r--r-- | package/ulogd/files/ulogd.init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/ulogd/files/ulogd.init b/package/ulogd/files/ulogd.init new file mode 100644 index 000000000..34cbfe7b6 --- /dev/null +++ b/package/ulogd/files/ulogd.init @@ -0,0 +1,22 @@ +#!/bin/sh +#FWINIT 49 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${ulogd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + ulogd -d + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? |