How to add nfs mounts as a dependency to an smf manifest file.
On a webserver, I modified smf manifests for apache2 and mysql5. I tested the services by enabling and disabling each one; everything was fine.
However, upon reboot, both services were listed as being under maintenance.
I checked the smf log for mysql:
Apache was complaining that the webroot configuration was bad. I checked the conf file, and it was fine. I then remembered that the webroot was being nfs mounted.
Apache must’ve been trying to start before the webroot was mounted. After some experimentation, this appears to be how to add nfs mounts as an smf manifest dependency:
After adding the dependency, I re-imported the manifest: