Quoth Bill Shannon on Wed, Dec 10, 2008 at 04:14:43PM -0800:
> I created a simple SMF service that runs a script in my home directory.
> Because my home directory is automounted, the script shouldn't run until
> the automounter is working, so I put in a dependency:
> 
>              <service_fmri value='svc:/system/filesystem/autofs' />
> 
> Unfortunately, that didn't work.  The service startup always fails with:
> 
> svc.startd could not set context for method: chdir: No such file or directory

My guess is that the autofs start method returns before the automounter
is ready to mount filesystems.  You could test this by adding a sleep to
/lib/svc/method/svc-autofs after it launches automount in the
background.  If I'm right, you should file a bug against the
automounter.


David

Reply via email to