We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c85420 commit e94b013Copy full SHA for e94b013
func/shared.func
@@ -674,15 +674,11 @@ get_user_value() {
674
675
restart_schedule() {
676
type="$1"
677
- period="$2"
678
-
679
- # Checking period
680
- if [ -z "$period" ]; then
681
- period=$(grep 'RESTART_PERIOD=' $V_CONF/vesta.conf | cut -f 2 -d \')
+ if [ -z "$RESTART_PERIOD" ]; then
+ RESTART_PERIOD=0
682
fi
683
684
- if [ "$period" -le 0 ]; then
685
- $V_FUNC/restart_"$type"
+ if [ "$RESTART_PERIOD" -le 0 ]; then
+ $V_BIN/v_restart_"$type"
686
else
687
echo "$type" >> $V_QUEUE/restart.pipe
688
0 commit comments