Re: rc functions don't allow processes to shutdown



Doug Barton wrote:
On Fri, 31 Aug 2007, Sean Bruno wrote:

I noticed that if rc.conf has ntpd_enable="NO", an invocation of /etc/rc.d/ntpd stop won't actually shut down ntpd. I checked a couple of other processes(like net-snmp) and noted the same behavior.

FYI, there is a list for discussing rc.d issues, freebsd-rc@. The current behavior is by design, and I don't think that changing it is a good idea this late in the game.

Ah, as usual, I picked the wrong list. I'll take design issues there.
Assuming that lack of an affirmative _enable variable is a constant, the only way that a service can be started is with either onestart or forcestart. The symmetry here would be to stop it the same way.

This may be symmetrical, but I question whether or not the 'correct' behavior is symmetrical.

I don't see the benefit to the end user in this implementation, e.g. trying to disable a running service. If a new-ish admin edits the rc.conf prior to shutting down the service, there could be some consternation.

However, my entire idea of how to shut down a process in FreeBSD may be flawed, and I may be the one who is in need of a 'design change'. :)

Sean
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: rc functions dont allow processes to shutdown
    ... /etc/rc.d/ntpd stop won't actually shut down ntpd. ... other processes(like net-snmp) and noted the same behavior. ... The symmetry here would be to stop it the same way. ... It can invoke them, in the same way that the start routines can be invoked ...
    (freebsd-hackers)
  • Re: An idea for a freak DWIM lisp-2
    ... - Anywhere in your program or design where you have ... program or design then there ought to be some reason ... program should be invariant under that permutation ... - Suppose your program is invariant under some symmetry. ...
    (comp.lang.lisp)
  • Stillwater anorthosite/pyroxene couplets... was Re: A message from Sean Pitman
    ... |> parameters of symmetry and surface roughness which distinguish ... | materials, such as granite. ... | found on an alien planet without any knowledge of any aliens occupying ...
    (talk.origins)
  • Re: ntpd PLL and clock overshoot
    ... The overshoot is the result of a misdirected Solaris/Linux design of the adjtimesystem call. ... The design added a poll to the transfer function in order to speed the response to a programmed offset. ... The result completely torpedoes the PLL transient response and there is nothing that can be done to correct it in ntpd itself. ...
    (comp.protocols.time.ntp)
  • Re: Seans Smooth granite block
    ... Humans also make big asymmetrical "modern-art" type granite monuments ... People, that we know about, also design very amorphous looking granite ... Because the degree of reflective symmetry, ...
    (talk.origins)