aboutsummaryrefslogtreecommitdiff
path: root/www/lighttpd
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-02-06 12:19:17 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-02-06 12:19:17 +0000
commit7954fc77678061c3663e0e4e9ab46939792e7c55 (patch)
treefab2625e9169b9fe2eac2808e4448a482c394a76 /www/lighttpd
parentefd27945b82f437e83657ee92cc7cba98cab804b (diff)
downloadports-7954fc77678061c3663e0e4e9ab46939792e7c55.tar.gz
ports-7954fc77678061c3663e0e4e9ab46939792e7c55.zip
Notes
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()
{