sysklogd 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin $rc_base/init.d/sysklogd
  4. #
  5. # Description : Sysklogd loader
  6. #
  7. # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
  8. #
  9. # Version : 00.00
  10. #
  11. # Notes :
  12. #
  13. ########################################################################
  14. . /etc/sysconfig/rc
  15. . ${rc_functions}
  16. case "${1}" in
  17. start)
  18. boot_mesg "Starting system log daemon..."
  19. loadproc syslogd -m 0
  20. boot_mesg "Starting kernel log daemon..."
  21. loadproc klogd
  22. ;;
  23. stop)
  24. boot_mesg "Stopping kernel log daemon..."
  25. killproc klogd
  26. boot_mesg "Stopping system log daemon..."
  27. killproc syslogd
  28. ;;
  29. reload)
  30. boot_mesg "Reloading system log daemon config file..."
  31. reloadproc syslogd
  32. ;;
  33. restart)
  34. ${0} stop
  35. sleep 1
  36. ${0} start
  37. ;;
  38. status)
  39. statusproc syslogd
  40. statusproc klogd
  41. ;;
  42. *)
  43. echo "Usage: ${0} {start|stop|reload|restart|status}"
  44. exit 1
  45. ;;
  46. esac
  47. # End $rc_base/init.d/sysklogd