adumont$ who -b system boot 2009-07-27 22:07 In my case, as you suggested vbox:test01 was disabled before reboot (Jul 23 20:22:38). In the log I can see:
adumont$ tail /var/svc/log/site-xvm-vbox\:test01.log [ Jul 23 20:13:55 Method "start" exited with status 0. ] [ Jul 23 20:22:38 Stopping because service disabled. ] [ Jul 23 20:22:38 Executing stop method ("/export/home/adumont/svc/method/vbox stop"). ] VirtualBox Command Line Management Interface Version 3.0.0 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% [ Jul 23 20:22:38 Method "stop" exited with status 0. ] [ Jul 27 22:07:55 Disabled. ] adumont$ svccfg -s vbox:test01 listprop restarter/logfile (nothing) Now let's try to enable, and disable again the svc: adumont$ svcadm -v enable -ts vbox:test01 svc:/site/xvm/vbox:test01 temporarily enabled. adumont$ svcadm -v disable -ts vbox:test01 svc:/site/xvm/vbox:test01 temporarily disabled. adumont$ svccfg -s vbox:test01 listprop restarter/logfile restarter/logfile astring /var/svc/log/site-xvm-vbox:test01.log adumont$ svcs -l vbox:test01 fmri svc:/site/xvm/vbox:test01 name Sun xVM Virtualbox enabled false state disabled next_state none state_time Thu Jul 30 00:29:28 2009 logfile /var/svc/log/site-xvm-vbox:test01.log restarter svc:/system/svc/restarter:default dependency require_all/none svc:/milestone/network:default (online) dependency require_all/none svc:/system/filesystem/local:default (online) dependency require_all/none svc:/milestone/multi-user-server (online) So, based on this you seem to be right: after being enabled for the first time since last reboot, the restarter/logfile property is populated and svcs shows it again. Alex On Wed, Jul 29, 2009 at 11:38 PM, Tom Whitten <thomas.whitten at sun.com>wrote: > OK. I think that I understand. svcs gets the name of the log file from > the restarter/logfile property for the instance. In this case the > restarter property group is created and populated by svc.startd. The > restarter property group is a nonpersistent property group, however. > Nonpersistent property groups are lost on reboot. > > Thus, I think that you will only find a restarter/logfile property for > services that have been started since the last reboot. The corollary to > this is that svcs will only print a logfile for these services. > > Is this consistent with your experience? > > tom > > Alexandre Dumont writes: > > I get nothing :-( : > > > > adumont$ svcprop svc:/site/xvm/vbox:test01 | grep restarter/logfile > > adumont$ > > > > > > On Wed, Jul 29, 2009 at 9:20 PM, Tom Whitten <thomas.whitten at sun.com> > wrote: > > > > > Interesting. Do you get any output when you run: > > > > > > svcprop svc:/site/xvm/vbox:test01 | grep restarter/logfile > > > > > > tom > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090730/4782c367/attachment.html>