mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue