File tree Expand file tree Collapse file tree 6 files changed +18
-48
lines changed
Expand file tree Collapse file tree 6 files changed +18
-48
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $CRON_SYSTEM " ]; then
22- /etc/init.d/$CRON_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$CRON_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$CRON_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$CRON_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$CRON_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $DNS_SYSTEM " ]; then
22- /etc/init.d/$DNS_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$DNS_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$DNS_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$DNS_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$DNS_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $FTP_SYSTEM " ]; then
22- /etc/init.d/$FTP_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$FTP_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$FTP_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$FTP_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$FTP_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $MAIL_SYSTEM " ]; then
22- /etc/init.d/$MAIL_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$MAIL_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$MAIL_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$MAIL_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$MAIL_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $PROXY_SYSTEM " ]; then
22- /etc/init.d/$PROXY_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$PROXY_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$PROXY_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$PROXY_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$PROXY_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
Original file line number Diff line number Diff line change @@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919# ----------------------------------------------------------#
2020
2121if [ ! -z " $WEB_SYSTEM " ]; then
22- /etc/init.d/$WEB_SYSTEM status > /dev/null 2>&1
23- if [ $? -eq 0 ]; then
24- /etc/init.d/$WEB_SYSTEM reload > /dev/null 2>&1
25- if [ $? -ne 0 ]; then
26- exit $E_RESTART
27- fi
28- else
29- /etc/init.d/$WEB_SYSTEM start > /dev/null 2>&1
22+ /etc/init.d/$WEB_SYSTEM reload > /dev/null 2>&1
23+ if [ $? -ne 0 ]; then
24+ /etc/init.d/$WEB_SYSTEM restart > /dev/null 2>&1
3025 if [ $? -ne 0 ]; then
3126 exit $E_RESTART
3227 fi
You can’t perform that action at this time.
0 commit comments