Removing Dependancies From SMF Services
Problem: you have a service which is refusing to start because of some dependancy which isn't valid. For example, ssh won't start because autofs is disabled. (Yes, this is a bogus example, but stick with me.)
$ svcs -d ssh
svcs -d ssh
STATE STIME FMRI
disabled 10:28:27 svc:/system/filesystem/autofs:default
online 10:13:29 svc:/network/loopback:default
online 10:13:34 svc:/network/physical:default
online 10:13:37 svc:/system/cryptosvc:default
online 10:13:42 svc:/system/filesystem/local:default
online 10:13:43 svc:/system/utmp:default
So we can get rid of the autofs dependancy:
# svccfg -s ssh delpg fs-autofs
...then restart it (I had to disable/enable the ssh service).
Note: in my case this turned out to be a bogus problem, the real problem was that one of the fancy scripts a customer had provided didn't set the ListenAddress parameter correctly; this was diagnosed by looking at the logs.