When svcs reports a state of "-", it is telling you that it coundn't find
the restarter property group.  As you noted svcadm had the same problem.

startd creates the restarter property group for each service as it
processes the service definition from the repository.  The restarter
property group is created in the non-persistant repository in
/etc/svc/volatile/svc_nonpersist.db.  The inability to create this property
group is usually an indication of a pretty serious problem.  Are you seeing
the same problem with any other services?  Did you encounter any errors
when you imported the service?  Are there any interesting errors in
/var/svc/log/svc.startd.log or /etc/svc/volatile/svc.startd.log?

tom

Lubomir Petrik writes:
> Hi,
> when I currently try to import a new SMF service it shows '-' state. If 
> I try to start it I get an error that "restarter" property group is 
> missing. Any idea why?
> 
> Many thanks,
>    Lubos.
> 
> PS: Below you'll find some outputs. After successful svccfg import I see:
> bash-3.00# svcs "*execd:default*"
> STATE          STIME    FMRI
> -              svc:/application/sge/execd:default
> bash-3.00# svcadm -v enable -s execd:default
> svc:/application/sge/execd:default enabled.
> svcadm: svc:/application/sge/execd:default is misconfigured (lacks 
> "restarter" property group).
> bash-3.00# echo $?
> 3
> bash-3.00# svcs -l "*execd:default*"
> fmri         svc:/application/sge/execd:default
> name         Sun Grid Engine - Execd service
> enabled      true
> restarter    svc:/system/svc/restarter:default
> dependency   optional_all/none svc:/system/filesystem/autofs (online)
> dependency   require_all/none svc:/milestone/network (online)
> bash-3.00# svcs "*execd:default*"
> STATE          STIME    FMRI
> -              svc:/application/sge/execd:default
> bash-3.00# svccfg export 
> execd                                                    
> <?xml version='1.0'?>
> <!DOCTYPE service_bundle SYSTEM 
        ...

Reply via email to