mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
removed status trigger
This commit is contained in:
parent
7352ef0444
commit
5981afc795
6 changed files with 18 additions and 48 deletions
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$CRON_SYSTEM" ]; then
|
||||
/etc/init.d/$CRON_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$CRON_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$CRON_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$CRON_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$CRON_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$DNS_SYSTEM" ]; then
|
||||
/etc/init.d/$DNS_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$DNS_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$DNS_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$DNS_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$DNS_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$FTP_SYSTEM" ]; then
|
||||
/etc/init.d/$FTP_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$FTP_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$FTP_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$FTP_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$FTP_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$MAIL_SYSTEM" ]; then
|
||||
/etc/init.d/$MAIL_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$MAIL_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$MAIL_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$MAIL_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$MAIL_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||
/etc/init.d/$PROXY_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$PROXY_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$PROXY_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$PROXY_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$PROXY_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,9 @@ source $VESTA/func/main.sh
|
|||
#----------------------------------------------------------#
|
||||
|
||||
if [ ! -z "$WEB_SYSTEM" ]; then
|
||||
/etc/init.d/$WEB_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$WEB_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
else
|
||||
/etc/init.d/$WEB_SYSTEM start >/dev/null 2>&1
|
||||
/etc/init.d/$WEB_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$WEB_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue