Serghey Rodin 14 anni fa
parent
commit
85a8e4ab13
2 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 0
      bin/v_update_sys_rrd
  2. 0 3
      func/shared.func

+ 5 - 0
bin/v_update_sys_rrd

@@ -27,6 +27,11 @@ export PATH
 # Argument defenition
 period=$1
 
+# Checking rrddir
+if [ ! -d "$V_RRD" ]; then
+    mkdir -p $V_RRD
+fi
+
 
 #----------------------------------------------------------#
 #                       Action                             #

+ 0 - 3
func/shared.func

@@ -675,9 +675,6 @@ get_user_value() {
 restart_schedule() {
     type="$1"
     if  [ -z "$RESTART_PERIOD" ]; then
-        RESTART_PERIOD=0
-    fi
-    if [ "$RESTART_PERIOD" -le 0 ]; then
         $V_BIN/v_restart_"$type"
     else
         echo "$type" >> $V_QUEUE/restart.pipe