Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Start/stop/restart Lighttpd
- light_start() {
- /usr/local/sbin/lighttpd -f /etc/lighttpd.conf
- }
- light_stop() {
- killall lighttpd
- }
- case "$1" in
- 'start')
- echo "Starting Lighttpd..."
- light_start
- ;;
- 'stop')
- echo "Stopping Lighttpd..."
- light_stop
- ;;
- 'restart')
- echo "Restarting Lighttpd..."
- light_stop
- light_start
- ;;
- *)
- echo "$0 start|stop|restart"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement