#!/bin/sh LIGHTTPD_CONF=/home/jarkko/domains/piforienteering.fi/sites/piffen-new/config/lighttpd.conf PIDFILE=/home/jarkko/var/run/lighttpd.pid case "$1" in start) # Starts the lighttpd deamon echo "Starting Lighttpd" lighttpd -f $LIGHTTPD_CONF ;; stop) # stops the daemon bt cat'ing the pidfile echo "Stopping Lighttpd" kill `cat $PIDFILE` ;; restart) ## Stop the service regardless of whether it was ## running or not, start it again. echo "Restarting Lighttpd" $0 stop $0 start ;; reload) # reloads the config file by sending HUP echo "Reloading config" kill -HUP `cat $PIDFILE` ;; *) echo "Usage: lighttpdctrl (start|stop|restart|reload)" exit 1 ;; esac
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Johan Sörensen's lighttpd control script (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Updated lighttpd control scr... in lighttpd rails typo ruby-fcgi lighttpdctrl lighttpdctl fcgi
» Typo under lighttpd in lighttpd ruby rails typo ruby-fcgi
» Example lighttpd config for ... in php lighttpd rails examples filenice
» killing your own dispatch.fcgis in awk lighttpd ruby rails
» Add a New Rails App (Textdri... in lighttpd rails ssh
» Killing rogue dispatch.fcgi ... in fastcgi lighttpd ruby rails textdrive dispatch.fcgi on processes
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails