v_restart_cron 990 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # info: restart cron service
  3. # options: none
  4. #
  5. # The function tells crond service to reread its configuration files.
  6. #----------------------------------------------------------#
  7. # Variable&Function #
  8. #----------------------------------------------------------#
  9. # Importing variables
  10. source $VESTA/conf/vars.conf
  11. source $V_CONF/vesta.conf
  12. #----------------------------------------------------------#
  13. # Action #
  14. #----------------------------------------------------------#
  15. # Parsing config / or just source config
  16. if [ "$CRON_SYSTEM" = 'crond' ]; then
  17. /etc/init.d/crond 'reload' >/dev/null 2>&1
  18. if [ $? -ne 0 ]; then
  19. echo "$E_PARSING $V_EVENT"
  20. exit $E_PARSING
  21. fi
  22. fi
  23. #----------------------------------------------------------#
  24. # Vesta #
  25. #----------------------------------------------------------#
  26. exit