Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2009
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/sh
  2. #Start/stop/restart Lighttpd
  3.  
  4. light_start() {
  5. /usr/local/sbin/lighttpd -f /etc/lighttpd.conf
  6. }
  7.  
  8. light_stop() {
  9. killall lighttpd
  10. }
  11.  
  12. case "$1" in
  13. 'start')
  14. echo "Starting Lighttpd..."
  15. light_start
  16. ;;
  17. 'stop')
  18. echo "Stopping Lighttpd..."
  19. light_stop
  20. ;;
  21. 'restart')
  22. echo "Restarting Lighttpd..."
  23. light_stop
  24. light_start
  25. ;;
  26. *)
  27. echo "$0 start|stop|restart"
  28. ;;
  29. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement