Guest User

cblfs/init.d/lcdproc

a guest
Dec 28th, 2010
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. #!/bin/bash
  2. # Begin $rc_base/init.d/lcdproc
  3.  
  4. # Based on sysklogd script from LFS-3.1 and earlier.
  5. # ChangedBy: Steven Swann (sjs205) <[email protected]>
  6. # Date: Mon Dec 27 16:12:51 GMT 2010
  7.  
  8.  
  9. # Start or stop the lcdproc client based upon the first argument to the script.
  10.  
  11. . /etc/sysconfig/rc
  12. . $rc_functions
  13.  
  14. case $1 in
  15. start)
  16. boot_mesg "Starting lcdproc, the LCD client..."
  17. loadproc /usr/bin/lcdproc
  18. ;;
  19.  
  20. stop)
  21. boot_mesg "Stopping lcdproc, the LCD client..."
  22. killproc /usr/bin/lcdproc
  23. ;;
  24.  
  25. reload)
  26. boot_mesg "Reloading lcdproc, the LCD client..."
  27. reloadproc /usr/bin/lcdproc
  28. ;;
  29.  
  30. restart)
  31. $0 stop
  32. sleep 1
  33. $0 start
  34. ;;
  35.  
  36. status)
  37. statusproc /usr/bin/lcdproc
  38. ;;
  39.  
  40. *)
  41. echo "Usage: $0 {start|stop|reload|restart|status}"
  42. exit 1
  43. ;;
  44. esac
  45.  
  46. # End $rc_base/init.d/lcdproc
Advertisement
Add Comment
Please, Sign In to add comment