mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
export from svn
This commit is contained in:
commit
641ed97fdd
340 changed files with 32404 additions and 0 deletions
24
func/restart_cron
Executable file
24
func/restart_cron
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue