| 1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
- # info: restart cron service
- # options: none
- #
- # The function tells crond service to reread its configuration files.
- #----------------------------------------------------------#
- # Variable&Function #
- #----------------------------------------------------------#
- # Importing variables
- source $VESTA/conf/vars.conf
- source $V_CONF/vesta.conf
- #----------------------------------------------------------#
- # Action #
- #----------------------------------------------------------#
- # Parsing config / or just source config
- if [ "$CRON_SYSTEM" = 'crond' ]; then
- /etc/init.d/crond 'reload' >/dev/null 2>&1
- if [ $? -ne 0 ]; then
- echo "$E_PARSING $V_EVENT"
- exit $E_PARSING
- fi
- fi
- #----------------------------------------------------------#
- # Vesta #
- #----------------------------------------------------------#
- exit
|