diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
commit | 8b2630a82fbecfd57fa38aebb397a755936690e5 (patch) | |
tree | a9cfcd7bb5bea87d63fc8ef81c8456a130a249bc /doc/rc.lighttpd.redhat | |
parent | e57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff) | |
download | lighttpd-master.tar.gz |
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'doc/rc.lighttpd.redhat')
-rw-r--r-- | doc/rc.lighttpd.redhat | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/doc/rc.lighttpd.redhat b/doc/rc.lighttpd.redhat deleted file mode 100644 index e22d551d..00000000 --- a/doc/rc.lighttpd.redhat +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh -# -# lighttpd Startup script for the lighttpd server -# -# chkconfig: - 85 15 -# description: Lightning fast webserver with light system requirements -# -# processname: lighttpd -# config: /etc/lighttpd/lighttpd.conf -# config: /etc/sysconfig/lighttpd -# pidfile: /var/run/lighttpd.pid -# -# Note: pidfile is assumed to be created -# by lighttpd (config: server.pid-file). -# If not, uncomment 'pidof' line. - -# Source function library -. /etc/rc.d/init.d/functions - -if [ -f /etc/sysconfig/lighttpd ]; then - . /etc/sysconfig/lighttpd -fi - -if [ -z "$LIGHTTPD_CONF_PATH" ]; then - LIGHTTPD_CONF_PATH="/etc/lighttpd/lighttpd.conf" -fi - -prog="lighttpd" -lighttpd="/usr/sbin/lighttpd" -RETVAL=0 - -start() { - echo -n $"Starting $prog: " - daemon $lighttpd -f $LIGHTTPD_CONF_PATH - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog - return $RETVAL -} - -stop() { - echo -n $"Stopping $prog: " - killproc $lighttpd - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog - return $RETVAL -} - -reload() { - echo -n $"Reloading $prog: " - killproc $lighttpd -HUP - RETVAL=$? - echo - return $RETVAL -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - condrestart) - if [ -f /var/lock/subsys/$prog ]; then - stop - start - fi - ;; - reload) - reload - ;; - status) - status $lighttpd - RETVAL=$? - ;; - *) - echo $"Usage: $0 {start|stop|restart|condrestart|reload|status}" - RETVAL=1 -esac - -exit $RETVAL |