]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd.init
- add show-config target to initscript (shows parsed lighttpd.conf)
[packages/lighttpd.git] / lighttpd.init
index 957a0321f899e711f3818c46e0e5a6200c34b083..618e1bc738de7d530c746d147f935f2b317b8d91 100644 (file)
@@ -192,6 +192,9 @@ case "$1" in
   checkconfig|configtest)
        checkconfig 1
        ;;
+  show-config)
+       env SHELL=/bin/sh lighttpd -p -f /etc/lighttpd/lighttpd.conf $HTTPD_OPTS
+       ;;
   status)
        if is_yes "${LIGHT_ANGEL}"; then
                status lighttpd-angel || RETVAL=$?
@@ -199,7 +202,7 @@ case "$1" in
        status lighttpd || RETVAL=$?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|configtest|flush-logs|status}"
+       msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|configtest|flush-logs|show-config|status}"
        exit 3
        ;;
 esac
This page took 0.037394 seconds and 4 git commands to generate.