aboutsummaryrefslogtreecommitdiffstats
path: root/www/lighttpd
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-02-06 20:19:17 +0800
committermnag <mnag@FreeBSD.org>2006-02-06 20:19:17 +0800
commit9a0b9790be48b1b774bbfd27c0f43c3a9f86339c (patch)
treed113940036d3e8c742bf2e828ba2daa686f79188 /www/lighttpd
parent488412571fb369ecd2dfe7acb8dedb025c4c4296 (diff)
downloadfreebsd-ports-gnome-9a0b9790be48b1b774bbfd27c0f43c3a9f86339c.tar.gz
freebsd-ports-gnome-9a0b9790be48b1b774bbfd27c0f43c3a9f86339c.tar.zst
freebsd-ports-gnome-9a0b9790be48b1b774bbfd27c0f43c3a9f86339c.zip
- Check config when restart rc.d script [1]
- Remove BEFORE line and FreeBSD in KEYWORD PR: 92108 [1] Submitted by: Lapo Luchini <lapo@lapo.it> [1] Approved by: maintainer timeout, 16 days
Diffstat (limited to 'www/lighttpd')
-rw-r--r--www/lighttpd/files/lighttpd.sh.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/www/lighttpd/files/lighttpd.sh.in b/www/lighttpd/files/lighttpd.sh.in
index 66a2e24af834..4cb5cb758954 100644
--- a/www/lighttpd/files/lighttpd.sh.in
+++ b/www/lighttpd/files/lighttpd.sh.in
@@ -4,8 +4,7 @@
#
# PROVIDE: lighttpd
# REQUIRE: %%REQUIRE%%
-# BEFORE: LOGIN
-# KEYWORD: FreeBSD shutdown
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable lighttpd:
#
@@ -30,6 +29,13 @@ command_args="-f ${lighttpd_conf}"
pidfile=/var/run/lighttpd.pid
required_files=${lighttpd_conf}
stop_postcmd=stop_postcmd
+restart_precmd="checkconfig"
+
+checkconfig()
+{
+ echo "Performing sanity check on ${name} configuration:"
+ eval "${command} ${command_args} -t"
+}
stop_postcmd()
{