mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
fixed bug in restart function
This commit is contained in:
parent
8c854201a3
commit
e94b013fe5
1 changed files with 4 additions and 8 deletions
|
@ -674,15 +674,11 @@ get_user_value() {
|
|||
|
||||
restart_schedule() {
|
||||
type="$1"
|
||||
period="$2"
|
||||
|
||||
# Checking period
|
||||
if [ -z "$period" ]; then
|
||||
period=$(grep 'RESTART_PERIOD=' $V_CONF/vesta.conf | cut -f 2 -d \')
|
||||
if [ -z "$RESTART_PERIOD" ]; then
|
||||
RESTART_PERIOD=0
|
||||
fi
|
||||
|
||||
if [ "$period" -le 0 ]; then
|
||||
$V_FUNC/restart_"$type"
|
||||
if [ "$RESTART_PERIOD" -le 0 ]; then
|
||||
$V_BIN/v_restart_"$type"
|
||||
else
|
||||
echo "$type" >> $V_QUEUE/restart.pipe
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue