Added acceptable modes in call to open with O_CREAT
[fprobe-ulog.git] / fprobe-initscript
index 6cbae79..38b33f7 100644 (file)
@@ -34,7 +34,7 @@ case "$1" in
             rm -f $pidfile
         fi
 
-        /sbin/fprobe-ulog -M -E 60 -T 168 -f pf2 -q 1000 -s 30 -D 250000
+        /sbin/fprobe-ulog -M -e 3600 -d 3600 -E 60 -T 168 -f pf2 -q 1000 -s 30 -D 250000
        sleep 1
 
         cmd=success
@@ -63,6 +63,15 @@ case "$1" in
             echo 'not running' && exit 1
         ;;
 
+    condrestart)
+        if check_status; then
+           $0 restart
+           RETVAL=$?
+       else
+           RETVAL=0
+       fi
+       ;;
+
     *)
         echo "Usage: $0 {start|stop|restart|status}"
         RETVAL=1