fcron 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh
  2. # Begin /etc/init.d/fcron
  3. ### BEGIN INIT INFO
  4. # Provides: fcron
  5. # Required-Start: $local_fs
  6. # Should-Start: $remote_fs $syslog
  7. # Required-Stop: $local_fs
  8. # Should-Stop: $remote_fs $syslog
  9. # Default-Start: 3 4 5
  10. # Default-Stop: 0 1 2 6
  11. # Short-Description: Starts fcron.
  12. # Description: Starts fcron daemon.
  13. # X-LFS-Provided-By: BLFS
  14. ### END INIT INFO
  15. . /lib/lsb/init-functions
  16. BIN_FILE="/usr/sbin/fcron"
  17. #$LastChangedBy: bdubbs $
  18. #$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
  19. case "$1" in
  20. start)
  21. log_info_msg "Starting fcron..."
  22. start_daemon ${BIN_FILE}
  23. evaluate_retval
  24. ;;
  25. stop)
  26. log_info_msg "Stopping fcron..."
  27. killproc ${BIN_FILE}
  28. evaluate_retval
  29. ;;
  30. restart)
  31. $0 stop
  32. sleep 1
  33. $0 start
  34. ;;
  35. status)
  36. statusproc ${BIN_FILE}
  37. ;;
  38. *)
  39. echo "Usage: $0 {start|stop|restart|status}"
  40. exit 1
  41. ;;
  42. esac
  43. # End /etc/init.d/fcron