mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
fixed rrd bug
This commit is contained in:
parent
e94b013fe5
commit
85a8e4ab13
2 changed files with 5 additions and 3 deletions
|
@ -27,6 +27,11 @@ export PATH
|
|||
# Argument defenition
|
||||
period=$1
|
||||
|
||||
# Checking rrddir
|
||||
if [ ! -d "$V_RRD" ]; then
|
||||
mkdir -p $V_RRD
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue