Date: Fri, 18 Jul 2008 22:01:38 -0700 From: Doug Barton <dougb@FreeBSD.org> To: Stefan Bethke <stb@lassitu.de> Cc: freebsd-current@freebsd.org, lth@freebsd.org Subject: Re: rc improvements (wanted?) Message-ID: <48817532.4060704@FreeBSD.org> In-Reply-To: <525E8FF6-307E-4DC9-B730-21435A2C2D2C@lassitu.de> References: <200807172056.08835.naylor.b.david@gmail.com> <487FCA89.2010308@FreeBSD.org> <20080718083725.97823be0tg13fn6s@webmail.leidinger.net> <20080718071806.GV62764@server.vk2pj.dyndns.org> <525E8FF6-307E-4DC9-B730-21435A2C2D2C@lassitu.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Stefan Bethke wrote:
> Just as a simple counter-example: it's very annoying when a startup
> script for a non-essential service is blocking startup for an essential
> one. (A Smokeping config of mine takes about 5 minutes to finish, and
> it's blocking sshd, as I found out the other day when I had to reboot
> the server.)
I took at look at that rc.d script, and it seems to have duplicated
the same old script that a lot of ports scripts did before they were
included in the base rcorder (so the before/require stuff didn't
matter). Specifically it has:
# REQUIRE: DAEMON
# BEFORE: LOGIN
where it probably should just have REQUIRE: LOGIN. That would
generally place it after sshd (although obviously it would miss some
traffic that happens before it's started up). Of course, you can
always change the order yourself (e.g., add sshd to the REQUIRE line),
and/or investigate a way to get smokeping to do its startup process in
the background and yield to the next script in line. I've cc'ed lth so
that hopefully he can give this stuff some thought.
> Also see the repeated annoyances caused by dhclient on this
> list and elsewhere.
Well, two groups of categories that I think would be useful are
"depends on the network" and "does not depend on the network" which
would help deal with the delay you're talking about here. The problems
with that ensue when you start talking about NFS-mounted /usr/local,
diskless boot, etc.
Doug
--
This .signature sanitized for your protection
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48817532.4060704>
