Re: rc.subr modification: testing and feedback are welcome!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You should probably consider discussing this on the freebsd-rc@ list as well. Doug - -- This .signature sanitized for your protection -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.0 (FreeBSD) iD8DBQFFW2uTyIakK9Wy8PsRAl9sAKD9CjyPJewi4EoZMvs7WQGlCNxT4gCeJ8GY gQSYCA80amd3kJCQ0S11gv0= =UVOj -END PGP SIGNATURE- ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rc.subr modification: testing and feedback are welcome! [here's the patch]
Ouch... here's the patch ;-) On 11/15/06, Pietro Cerutti <[EMAIL PROTECTED]> wrote: On 11/15/06, Ingo <[EMAIL PROTECTED]> wrote: > > Hello, Hello, > There should be an tiemout so that the system boots even if I forget to > choose Yup, great idea. The new patch [attached] permits you to set: DAEMON_ask_timeout={0-9}[s|m|h] and DAEMON_ask_default=[yes|no] in rc.conf Default values have been put in rc.subr ("5s" and "yes") > > It should also be possible to use the short form [y/n] while booting in > addition to yes/no to start the deamon, This could be done, but at the moment I rely on the checkyesno subroutine in rc.subr, which only accepts [yes, true, on, 1] and [no, false, off, 0] in any combination of upper and lower case. > > greetings > Thanks for input, regards -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org rc.subr.diff Description: Binary data ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rc.subr modification: testing and feedback are welcome!
On 11/15/06, Ingo <[EMAIL PROTECTED]> wrote: Hello, Hello, There should be an tiemout so that the system boots even if I forget to choose Yup, great idea. The new patch [attached] permits you to set: DAEMON_ask_timeout={0-9}[s|m|h] and DAEMON_ask_default=[yes|no] in rc.conf Default values have been put in rc.subr ("5s" and "yes") It should also be possible to use the short form [y/n] while booting in addition to yes/no to start the deamon, This could be done, but at the moment I rely on the checkyesno subroutine in rc.subr, which only accepts [yes, true, on, 1] and [no, false, off, 0] in any combination of upper and lower case. greetings Thanks for input, regards -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: rc.subr modification: testing and feedback are welcome!
Am 15.11.2006, 14:31 Uhr, schrieb Pietro Cerutti <[EMAIL PROTECTED]>: Hello List, I did a patch to allow rc.conf DAEMON_enable values to be decided at startup. 1) set apache_start="ask" in rc.conf 2) at boot, you'll be prompted with "RC_ASK - Enable apache? [yes|no] " 3) the daemon is started depending on the decision 4) the decision is stored until the next boot, so that rc.shutdown can decide whether to call stop for a particular daemon or not See: http://www.freebsd.org/cgi/query-pr.cgi?pr=105568 for more information and to download the patch Thanx! Hello, looks good (and works on my FBSD6.1), in general i like the idea but some more feature would be nice. There should be an tiemout so that the system boots even if I forget to choose (for example if I want to connect to the system by remote, and sshd isnĀ“t startet yet). E.g. something like a global ASK_DELAY="sec" default set to 3sec or so, and adjustable by the variable. (and maybe adjustable for every demon individual) The DAEMON_enable variable should be set to ASK_DY to start after the default timeout and ASK_DN to not start after the timeout. It should also be possible to use the short form [y/n] while booting in addition to yes/no to start the deamon, and when I misstype, the variable should be set to "no" so that there is no errormessage from the rc system. greetings ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
rc.subr modification: testing and feedback are welcome!
Hello List, I did a patch to allow rc.conf DAEMON_enable values to be decided at startup. 1) set apache_start="ask" in rc.conf 2) at boot, you'll be prompted with "RC_ASK - Enable apache? [yes|no] " 3) the daemon is started depending on the decision 4) the decision is stored until the next boot, so that rc.shutdown can decide whether to call stop for a particular daemon or not See: http://www.freebsd.org/cgi/query-pr.cgi?pr=105568 for more information and to download the patch Thanx! -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"