mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Merge changes from upstream
This commit is contained in:
parent
8fb1fa5482
commit
c094d8582d
54 changed files with 4981 additions and 5671 deletions
|
@ -12,7 +12,6 @@
|
|||
# Includes
|
||||
source $VESTA/conf/vesta.conf
|
||||
source $VESTA/func/main.sh
|
||||
EVENT=${1-$EVENT}
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -21,11 +20,10 @@ EVENT=${1-$EVENT}
|
|||
|
||||
# Parsing config / or just source config
|
||||
if [ "$CRON_SYSTEM" = 'crond' ]; then
|
||||
/etc/init.d/crond 'reload' &>/dev/null
|
||||
/etc/init.d/crond 'reload' >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/crond 'restart' &>/dev/null
|
||||
/etc/init.d/crond 'restart' >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
log_event "$E_RESTART" "$EVENT"
|
||||
exit $E_RESTART
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue