Skip to content

Commit 85a8e4a

Browse files
committed
fixed rrd bug
1 parent e94b013 commit 85a8e4a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/v_update_sys_rrd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export PATH
2727
# Argument defenition
2828
period=$1
2929

30+
# Checking rrddir
31+
if [ ! -d "$V_RRD" ]; then
32+
mkdir -p $V_RRD
33+
fi
34+
3035

3136
#----------------------------------------------------------#
3237
# Action #

func/shared.func

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,9 +675,6 @@ get_user_value() {
675675
restart_schedule() {
676676
type="$1"
677677
if [ -z "$RESTART_PERIOD" ]; then
678-
RESTART_PERIOD=0
679-
fi
680-
if [ "$RESTART_PERIOD" -le 0 ]; then
681678
$V_BIN/v_restart_"$type"
682679
else
683680
echo "$type" >> $V_QUEUE/restart.pipe

0 commit comments

Comments
 (0)