diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-02-06 12:19:17 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-02-06 12:19:17 +0000 |
commit | 7954fc77678061c3663e0e4e9ab46939792e7c55 (patch) | |
tree | fab2625e9169b9fe2eac2808e4448a482c394a76 /www/lighttpd | |
parent | efd27945b82f437e83657ee92cc7cba98cab804b (diff) |
Notes
Diffstat (limited to 'www/lighttpd')
-rw-r--r-- | www/lighttpd/files/lighttpd.sh.in | 10 |
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() { |