diff --git a/bin/v_update_sys_rrd b/bin/v_update_sys_rrd index fb7549cef..c69f57b8b 100755 --- a/bin/v_update_sys_rrd +++ b/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 # diff --git a/func/shared.func b/func/shared.func index 66a827091..1eb1927c9 100644 --- a/func/shared.func +++ b/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