Guest User

cblfs/init.d/LCDd

a guest
Dec 28th, 2010
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. # Begin $rc_base/init.d/LCDd
  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 LCDd server 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 LCDd, the LCD server..."
  17. loadproc /usr/sbin/LCDd
  18. ;;
  19.  
  20. stop)
  21. boot_mesg "Stopping LCDd, the LCD server..."
  22. killproc /usr/sbin/LCDd
  23. ;;
  24.  
  25. reload)
  26. boot_mesg "Reloading LCDd, the LCD server..."
  27. reloadproc /usr/sbin/LCDd
  28. ;;
  29.  
  30. restart)
  31. $0 stop
  32. sleep 1
  33. $0 start
  34. ;;
  35.  
  36. status)
  37. statusproc /usr/sbin/LCDd
  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/LCDd
Advertisement
Add Comment
Please, Sign In to add comment