mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-01-08 20:13:01 -08:00
25 lines
477 B
Bash
Executable File
25 lines
477 B
Bash
Executable File
#!/bin/bash
|
|
# Internal vesta function
|
|
# cron system restart
|
|
|
|
# Importing variables
|
|
source $VESTA/conf/vars.conf
|
|
|
|
crond() {
|
|
/etc/init.d/crond 'reload' >/dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
#$V_FUNC/report_issue 'sys' 'cron'
|
|
echo "$E_RESTART_FAILED $V_EVENT"
|
|
fi
|
|
}
|
|
|
|
# Parsing config / or just source config
|
|
cron_system=$(grep 'CRON_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
|
|
|
|
if [ "$cron_system" = 'crond' ]; then
|
|
crond
|
|
fi
|
|
|
|
# Logging
|
|
exit $OK
|