Yes. This is because I don't like the behavior of REQUIRE keyword here.Problem with /usr/local/etc/rc.d is, if you accidently remove a port/pkg, it removes the rc.d script as well and your changes gone.
Please share the specifics of your changes. I'm interested. I'm sure it would help others.Problem with /usr/local/etc/rc.d is, if you accidently remove a port/pkg, it removes the rc.d script as well and your changes gone.
That's one reason why I opted to use /etc/rc.local and /etc/rc.shutdown to handle such services.
It's also safety measure in that sometimes due to a misconfigured service, when the system boots up, it hangs only to find out later it was because of a misconfiguration. Having it in /etc/rc.local would start the services after the system has booted up, which is a bit safe and you can catch and fix misconfigurations after that.
rc.d script which would use BEFORE: BIND9 and AFTER: WIREGUARD, for example.It's actually the /etc/rc.local script and just put stuff in there in the order you want.Please share the specifics of your changes. I'm interested. I'm sure it would help others.
In the past, I seem to recall creating a customrc.dscript which would use BEFORE: BIND9 and AFTER: WIREGUARD, for example.
#!/bin/sh
sleep 2
sysrc -f /etc/rc.conf.local wireguard_enable="YES"
sysrc -f /etc/rc.conf.local named_enable="YES"
service wireguard start
sleep 1
service named start
exit 0
sysrc -f /etc/rc.conf.local wireguard_enable="NO"
sysrc -f /etc/rc.conf.local named_enable="NO"