Added acceptable modes in call to open with O_CREAT
[fprobe-ulog.git] / fprobe-initscript
index 17dc144..38b33f7 100644 (file)
@@ -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