- 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
This commit is contained in:
Marcus Alves Grando 2006-02-06 12:19:17 +00:00
parent efd27945b8
commit 7954fc7767
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155320

View File

@ -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()
{