Unresolved dependencies in rcorder

I seem to have some odd problem with my rcorder. As an example, I consider here /usr/local/etc/rc.d/ezjail.
When I run rcorder /usr/local/etc/rc.d/ezjail I get a bunch of errors like

Code:
rcorder: file `/usr/local/etc/rc.d/ezjail' is before unknown provision `securelevel'
rcorder: requirement `sshd' in file `/usr/local/etc/rc.d/ezjail' has no providers.
rcorder: requirement `cleanvar' in file `/usr/local/etc/rc.d/ezjail' has no providers.
rcorder: requirement `LOGIN' in file `/usr/local/etc/rc.d/ezjail' has no providers.

The /usr/local/etc/rc.d/ezjail has the lines -

Code:
# PROVIDE: ezjail
# REQUIRE: LOGIN cleanvar sshd
# BEFORE: securelevel
# KEYWORD: nojail shutdown


As one of the errors mentioned sshd, I check the /etc/rc.d/sshd. That has a line

Code:
# PROVIDE: sshd

So, ezjail requires sshd, and it is provided. Why does it still complain? And how can I fix it?
 
You need to actually pass *all* required files to rcorder for it to list dependency ordering, so:
Code:
 rcorder /usr/local/etc/rc.d/ezjail /etc/rc.d/*
...would show when ezjail is run among the base scripts.
 
You need to actually pass *all* required files to rcorder for it to list dependency ordering, so:
Code:
rcorder /usr/local/etc/rc.d/ezjail /etc/rc.d/*
...would show when ezjail is run among the base scripts.

Thanks, so I had a look, and the "required" scripts LOGIN, cleanvar, sshd are all before ezjail.. so I'm still lost..
 
Perhaps the trouble lies with another of these scripts. Doing rcorder /usr/local/etc/rc.d/* throws a bunch of errors. But recursively digging through that list seems too tedious.
So for the moment, I'll just cheat and manuall start ezjail with a cronjob with sleep prefixed at the beginning.
 
OK, so if you specify rcorder /etc/rc.d/* /usr/local/etc/rc.d/*, does *that* show any issues? It's how it works anyway, processing *all* of the scripts to find dependencies.

Now about your problem with ezjail startup, check the rc_debug variable in rc.conf(5).
 
OK, so if you specify rcorder /etc/rc.d/* /usr/local/etc/rc.d/*, does *that* show any issues? It's how it works anyway, processing *all* of the scripts to find dependencies.

Yes, indeed! Doing that shows a couple of errors with kerberos and named...

Code:
rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision `kerberos'
rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision `named'
 
Back
Top