home *** CD-ROM | disk | FTP | other *** search
/ tusportal.tus.k12.pa.us / tusportal.tus.k12.pa.us.tar / tusportal.tus.k12.pa.us / Wyse / latest-image.raw / 0.img / lib / lsb / init-functions
Text File  |  2010-05-05  |  697b  |  56 lines

  1. #
  2. # Define init LSB shell functions
  3. #
  4.  
  5. #
  6. # Source SuSE's rc functions
  7. #
  8. . /etc/rc.status
  9.  
  10. #
  11. # Be sure that  start_daemon, killproc, and
  12. # pidofproc will be script functions.
  13. #
  14. function start_daemon ()
  15. {
  16.     /sbin/start_daemon ${1+"$@"}
  17. }
  18.  
  19. function killproc ()
  20. {
  21.     /sbin/killproc ${1+"$@"}
  22. }
  23.  
  24. function pidofproc ()
  25. {
  26.     /sbin/pidofproc ${1+"$@"}
  27. }
  28.  
  29. #
  30. # Logging of succes messages
  31. #
  32. function log_success_msg ()
  33. {
  34.     echo -en "$@"
  35.     echo -e  "$rc_done"
  36. }
  37.  
  38. #
  39. # Logging of failure messages
  40. #
  41. function log_failure_msg ()
  42. {
  43.     echo -en "$@"
  44.     echo -e  "$rc_failed"
  45. }
  46.  
  47. #
  48. # Logging of warn messages
  49. #
  50. function log_warning_msg ()
  51. {
  52.     echo -en "$@"
  53.     echo -e  "${stat}${attn} warning${norm}"
  54. }
  55.  
  56.