Hello all!
I try to solve trivial tasks when starting services but I can not find any solutions.
1. set/add/edit REQUIRE for service without direct editing service's rc scripts. Example in rc.conf file something like this
Using
2. I need start some shell command before start service WHITHOUT editing rc scripts. I have not found any resolution for this requirements.
Perhaps someone can help me with these requests.
I try to solve trivial tasks when starting services but I can not find any solutions.
1. set/add/edit REQUIRE for service without direct editing service's rc scripts. Example in rc.conf file something like this
${service}_requires=+jail
to add jail service dependency before start ${service}
.Using
${service}_env
in rc.conf file gives me the error response `env: defaultroute: No such file or directory` when I try to copy all REQUIRE from rc script of service. I can not edit rc files because they are overwritten after service update and my changes are dropped.2. I need start some shell command before start service WHITHOUT editing rc scripts. I have not found any resolution for this requirements.
Perhaps someone can help me with these requests.