My question exactly same as this question except I want to change services in FreeBSD.
I made some research and I found rcorder command which gives full order of services with below paramaters.
rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
In addition, I can add REQUIRE option of any rc.d script in order to start my service before it. I didn't like this way because I don't want to change other programs' rc.d scripts. Is there any more proper way to do this?
Thanks…
Best Answer
rc startup order is determined by
rcorder
, as you've already determined.This process for determining startup order is automatic, and the man page for
rcorder
is relatively self-explanatory, but you may will want to spend some time reviewing Practical rc.d scripting, and therc
man page before making any changes.In your particular case, you can tell rcorder that your script prefers to start
BEFORE:
other scripts (using theBEFORE
keyword), but this should only be done with good reason, and within certain limits.From the Practical rc.d scripting article:
And additionally