Skip to content

Commit 5981afc

Browse files
committed
removed status trigger
1 parent 7352ef0 commit 5981afc

File tree

6 files changed

+18
-48
lines changed

6 files changed

+18
-48
lines changed

bin/v-restart-cron

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

bin/v-restart-dns

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

bin/v-restart-ftp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

bin/v-restart-mail

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

bin/v-restart-proxy

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

bin/v-restart-web

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ source $VESTA/func/main.sh
1919
#----------------------------------------------------------#
2020

2121
if [ ! -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

0 commit comments

Comments
 (0)