Heads Up: shutdown keyword added to 34 rc.d scripts.

Doug Barton dougb at FreeBSD.org
Wed Jul 16 20:06:11 UTC 2008


One more followup, des had asked to have "faststop" in rc.shutdown 
changed to just "stop," and initially I had no objection to that 
change. However looking at it more closely, the only difference is this:

if [ -z "$rc_pid" ]; then
   [ -n "$rc_fast" ] && return 0
   _run_rc_notrunning
   return 1
fi

The _run_rc_notrunning function is what prints the "${name} not 
running?" message, which I don't think it would be useful to do when 
shutting the system down.

Doug


Doug Barton wrote:
> FYI. If you are familiar with kerberos stuff and want to add shutdown
> there, please feel free. Same goes with the network stuff if you feel
> strongly it should be added.
> 
> By the same token, if adding shutdown breaks something please feel
> free to revert it. The only thing I ask is that you clarify the
> reasons in the commit message for posterity.
> 
> I've run with this locally for quite a while and just haven't had a
> chance to commit it. OTOH I don't use most of the stuff covered by
> this, so I'd like to get it tested in real world conditions for a
> while before it's MFC'ed.
> 
> 
> Regards,
> 
> Doug
> 
> -------- Original Message --------
> Subject: svn commit: r180564 - head/etc/rc.d
> Date: Wed, 16 Jul 2008 19:50:29 +0000 (UTC)
> From: Doug Barton <dougb at FreeBSD.org>
> To: src-committers at freebsd.org
> 
> Author: dougb
> Date: Wed Jul 16 19:50:29 2008
> New Revision: 180564
> URL: http://svn.freebsd.org/changeset/base/180564
> 
> Log:
> ~  Add the shutdown KEYWORD to those scripts that start persistent
> ~  services to allow them to do a "clean" shutdown.
> 
> ~  I purposely avoided making changes to network-related stuff since
> ~  the system shutting down is pretty conclusive, and there may be
> ~  complicated dependencies on the network that I would rather not try
> ~  to unravel.
> 
> ~  I also skipped kerberos-related stuff for the reasons above, and
> ~  because I have no way to test it.

-- 

     This .signature sanitized for your protection



More information about the freebsd-rc mailing list