From a3d8706ec923e0d61e5eb2783f1f258d05c8ac53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 9 Aug 2011 10:38:08 +0000 Subject: [PATCH] - add show-config target to initscript (shows parsed lighttpd.conf) Changed files: lighttpd.init -> 1.18 lighttpd.spec -> 1.347 --- lighttpd.init | 5 ++++- lighttpd.spec | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lighttpd.init b/lighttpd.init index 957a032..618e1bc 100644 --- a/lighttpd.init +++ b/lighttpd.init @@ -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 diff --git a/lighttpd.spec b/lighttpd.spec index 683f2d1..32b1d0a 100644 --- a/lighttpd.spec +++ b/lighttpd.spec @@ -29,7 +29,7 @@ Summary: Fast and light HTTP server Summary(pl.UTF-8): Szybki i lekki serwer HTTP Name: lighttpd Version: 1.4.29 -Release: 1 +Release: 2 License: BSD Group: Networking/Daemons/HTTP Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.bz2 -- 2.44.0