Hi Darren, On 6/15/06, Darren Reed <Darren.Reed at sun.com> wrote: > Wee Yeh Tan wrote: > > More details in svc.startd(1M) under the section "Logs and Corefiles". > My man page for svc.startd(1M) as shipped with Solaris 10 doesn't > have any such section.
Hmm... seems like I have an older man page. My snv_38 box didn't have that either. > For what it's worth, this is the sub-section titled "Logs": > Logs > > By default, svc.startd provides logging of significant res- > tarter actions for the service as well as method standard > output and standard error file descriptors to > /var/svc/log/service:instance.log. The level of restarter > action logging is specified by the options/logging property. > > As you'll note, this mentions standard output (stdout) and standard > error (stderr). This is not the same as what I'm referring to and > that is capturing text sent (directly) to the console. I'm fully > aware that it captures stdout and stderr already. Some applications, > be they daemons or otherwise, do output to the console and not > stdout/stderr. My bad about missing /dev/console that seems to be the main point. That certainly puts your query into perspective. I think you lucked out here. I do not see how SMF can do it. In fact, I do not think SMF should do that. To be fair, I have not seen any services that writes to console lately but if I specifically write to /dev/console, I would like to see the message on console. > > SVR4 rc startups are typically very serial compared to SMF which is > > highly parallelized. > > > I'm well aware of this and it is of no bearing to the problem > or the suggestion/request. It does. Ever tried "truss -fp" on an apache mother daemon? I imagine this is what you will end up with. > Would you rather try and piece together the output saved > in 100 or more different log files or have it all in one? Now, if sequence of events are important, a single file will loosely preserve the flush order. With service dependency, its unlikely you ever need to synchronize 100s or files. syslog is closer to the mechanism you are looking for. I suspect you are not really just asking about service start ups here. I gotta ask what problem are you really trying to attack here before I humiliate myself more. -- Just me, Wire ...