Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 2000 23:34:14 -0400 (EDT)
From:      Adam <bsdx@looksharp.net>
To:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc rc.shutdown
Message-ID:  <Pine.BSF.4.21.0007082328430.407-100000@turtle.looksharp.net>
In-Reply-To: <Pine.BSF.4.20.0007081154230.84816-100000@home.astralblue.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Jul 2000, Eugene M. Kim wrote:

>That sounds like a good idea, provided that it will be gone after a
>reasonable heads-up grace period.  One scenario might be:
>
>* In FreeBSD 4.1:
>
>- Add a `# start|stop' line to every startup script in ports.
>
>- Make rc / rc.shutdown aware of non-conforming scripts which are likely
>to be homemade ones or ones from previous port/package installation.  
>The rc scripts should treat the old scripts in the compatibility mode,
>and should explicitly say something like:
>
>starting local daemons: vn.
>Local package initialization: apache pgsql Samba squid mixer.
>---------- IMPORTANT NOTICE ----------
*snip*
>----------- END OF NOTICE ------------
>
>* In FreeBSD 4.2:
>
>- Remove the compatibility mode from rc and port startup scripts.

I was thinking just leave a tag in there for scripts that we provide so
people can *add* this new extra shutdown functionality only if they want
to, so we dont force people to do work they might not be capable or feel
like doing.  Nothing wrong with having a simple .sh script in rc.d which
simply starts up a nonimportant program, and if they haven't missed safer
shutdown by now then they shouldnt be forced to make their script more
complex than it already is just to conform to a new standard.  As long as
we dont re-run a .sh without stop support during shutdown, we aren't
hurting anything nor forcing unneeded work.  I think this would fall under
the POLA catagory.  

>
>On Sat, 8 Jul 2000, Adam wrote:
>| 
>| Can't we run a grep -l "somethinghere" /usr/local/etc/rc.d/* at
>| shutdown and only run those scripts which contain a reasonable indication
>| of supporting the stop feature?  A quick hack to make this work would be 
>| to put a comment in the .sh scripts which ports install which grep would
>| find and wordy enough that someone could look at a FreeBSD supplied .sh
>| and say Oh! I see how to make mine work like that.  Even just:
>| 
>| # I support start|stop
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007082328430.407-100000>