For When You Can't Have The Real Thing
[ start | index | login ]
start > Solaris > SMF > Dependancies


Created by dave. Last edited by dave, 16 years and 166 days ago. Viewed 8,683 times. #2
[diff] [history] [edit] [rdf]

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.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt