rc: not working as expected? (round 2)

2008-10-10 Thread Paul Halliday
(I mistakenly sent the last msg before finishing..)

Or maybe an interpretation issue.

I have a few startup scripts in rc.d and I am experiencing timing
issues. i.e. I need xyz to start before abc.

Within xyz I tried:

# REQUIRE: abc

This didn't work so I tried:

100.xyz
900.abc

which doesn't appear to work either.

What am I missing?

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rc: not working as expected? (round 2)

2008-10-10 Thread Jeremy Chadwick
On Fri, Oct 10, 2008 at 12:19:21PM -0300, Paul Halliday wrote:
 (I mistakenly sent the last msg before finishing..)
 
 Or maybe an interpretation issue.
 
 I have a few startup scripts in rc.d and I am experiencing timing
 issues. i.e. I need xyz to start before abc.
 
 Within xyz I tried:
 
 # REQUIRE: abc
 
 This didn't work so I tried:
 
 100.xyz
 900.abc
 which doesn't appear to work either.
 
 What am I missing?

The answer is probably in the rcorder(8) or rc(8) man pages.

I'm betting you need to use the BEFORE clause, and the string you need
to match on is whatever one (or more) of the PROVIDE clauses are in
the script which you want to start first.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rc: not working as expected? (round 2)

2008-10-10 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Halliday wrote:
 (I mistakenly sent the last msg before finishing..)
 
 Or maybe an interpretation issue.
 
 I have a few startup scripts in rc.d and I am experiencing timing
 issues. i.e. I need xyz to start before abc.
 
 Within xyz I tried:
 
 # REQUIRE: abc
 
 This didn't work so I tried:
 
 100.xyz
 900.abc
 
 which doesn't appear to work either.
 
 What am I missing?
 
 Thanks.

Hi Paul,

You may be using REQUIRE: abc in one script, but have you placed a
corresponding PROVIDE: abc in another script?

I also use rcorder to print the order in which my rc.d scripts will be
loaded:
http://www.freebsd.org/cgi/man.cgi?query=rcordersourceid=opensearch.
Check /etc/rc to see how rcorder is invoked at various times during bootup.

Regards,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI73aV0sRouByUApARApUrAJ0VYBe6StWNPIFw6GUGphDQ+yjoywCbB0hF
+BUsLASWGkL7PDVnP56vpTY=
=idyk
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rc: not working as expected?

2008-10-10 Thread Paul Halliday
Or maybe an interpretation issue.

I have a few startup scripts in rc.d and I am experiencing timing
issues. i.e. I need xyz to start before abc.

Within xyz I tried:
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rc: not working as expected? (round 2)

2008-10-10 Thread Brian A. Seklecki

You can do a dry run as a non root user:

$ rcorder /etc/rc.d/* /usr/local/etc/rc.d* 21 | more

~BAS

On Fri, 2008-10-10 at 12:19 -0300, Paul Halliday wrote:
 (I mistakenly sent the last msg before finishing..)
 
 Or maybe an interpretation issue.
 
 I have a few startup scripts in rc.d and I am experiencing timing
 issues. i.e. I need xyz to start before abc.
 
 Within xyz I tried:
 
 # REQUIRE: abc
 
 This didn't work so I tried:
 
 100.xyz
 900.abc
 
 which doesn't appear to work either.
 
 What am I missing?
 
 Thanks.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]