On Mon, Jan 30, 2012 at 03:44:00PM -0600, Brian Cameron wrote:
>
> SMF Experts:
>
> I notice a bug with the SMF integration for the "consolekit" and "gdm"
> services on S11U1 build 8 (x86).
>
> - In /var/svc/log/application-graphical-login-gdm:default.log:
>
> [ Jan 30 10:52:18 Executing start method
> ("/lib/svc/method/svc-gdm start"). ]
> svcprop: Couldn't find property `gdm/args' for instance
> `svc:/application/graphical-login/gdm:default'.
>
> - In /var/svc/log/system-consolekit:default.log
>
> [ Jan 30 10:51:23 Executing start method
> ("/lib/svc/method/svc-consolekit start"). ]
> svcprop: Couldn't find property group `consolekit' for instance
> `svc:/system/consolekit:default'.
>
> I notice the gdm.xml manifest file has these lines, while the
> consolekit.xml manifest has no "property_group" or "propval" tags
> at all.
>
> <property_group name='gdm' type='application'>
> <propval name='args' type='astring' value='' />
> </property_group>
>
> Either way, the log message failure seems the same. Any ideas about
> what is wrong or how to fix this?
>
> Thanks,
>
> Brian
> _______________________________________________
> smf-discuss mailing list
> [email protected]
Brian,
The problem for gdm is that there are two gdm property groups -- one at the
instance level and one at the service level. Let's look at the instance
level first:
$ svcprop -p gdm svc:/application/graphical-login/gdm:default
gdm/entities fmri svc:/system/vbiosd
gdm/external boolean true
gdm/grouping astring optional_all
gdm/restart_on astring none
gdm/type astring service
Let's look at the same PG with svccfg, because it tells us the PG type.
$ svccfg -s svc:/application/graphical-login/gdm:default listprop gdm
gdm dependency
gdm/entities fmri svc:/system/vbiosd
gdm/external boolean true
gdm/grouping astring optional_all
gdm/restart_on astring none
gdm/type astring service
So it is a dependency PG declared by svc:/system/vbiosd. Looking at
/lib/svc/manifest/system/vbiosd.xml, we see:
<dependent
name='gdm'
grouping='optional_all'
restart_on='none'>
<service_fmri
value='svc:/application/graphical-login/gdm:default' />
</dependent>
The manifest for the gdm service itself,
/lib/svc/manifest/application/graphical-login/gdm.xml, declares the gdm
property group at the service level, and it has a type of application --
not dependency. Let's run svcprop on the service:
$ svcprop -p gdm svc:/application/graphical-login/gdm
gdm/args astring ""
This is what /lib/svc/method/svc-gdm is trying to find, but it is invoking
svcprop on the instance, svc:/application/graphical-login/gdm:default. It
should be changed to invoke svcprop on the service,
svc:/application/graphical-login/gdm (no :default).
Normally, svcprop on the instance shows the composed view. Had we not had
two different gdm property groups at the instance and service level, the
svcprop command would have found the service level property group.
As to consolekit, I'm not sure that I understand your question. As you
note, the error message comes because the consolekit PG has not been
defined.
tom
_______________________________________________
smf-discuss mailing list
[email protected]