fixed rrd bug

This commit is contained in:
Serghey Rodin 2012-01-18 15:14:02 +02:00
commit 85a8e4ab13
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -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