Wee Yeh Tan wrote:

> Hi Darren,
>
> On 6/15/06, Darren Reed <Darren.Reed at sun.com> wrote:
>
>> While I'm thinking of useful changes to SMF, can it capture all
>> output sent to the console, directly, by services?
>>
>> So if the startup scripts for a service do 'echo foo > /dev/console',
>> can that be captured?
>
>
> /var/svc/logs/<service>:<instance>.log
>
> 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.

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.

>> And further to this, is it possible to generate a single output
>> file of all of the stdout/stderr from services as they boot up?
>>
>> Although this can be something like a plate of scrambled eggs,
>> it can be useful to have in a single place all of the output from
>> services started (or attempted to start) at bootup, in an order
>> that is roughly equivalent to that in which they were generated in.
>> Yes, I've seen this mode of operation elsewhere but they only had
>> a more developed SVR4 rc system, not SMF.
>
>
> 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.

Would you rather try and piece together the output saved
in 100 or more different log files or have it all in one?

Darren


Reply via email to