crond 599 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/sh
  2. . /etc/rc.d/functions
  3. BIN_FILE="/usr/bin/crond"
  4. #$LastChangedBy: bdubbs $
  5. #$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
  6. case "$1" in
  7. start)
  8. log_info_msg "Starting crond..."
  9. start_daemon ${BIN_FILE}
  10. evaluate_retval
  11. ;;
  12. stop)
  13. log_info_msg "Stopping crond..."
  14. killproc ${BIN_FILE}
  15. evaluate_retval
  16. ;;
  17. restart)
  18. $0 stop
  19. sleep 1
  20. $0 start
  21. ;;
  22. status)
  23. statusproc ${BIN_FILE}
  24. ;;
  25. *)
  26. echo "Usage: $0 {start|stop|restart|status}"
  27. exit 1
  28. ;;
  29. esac
  30. # End /etc/init.d/crond