Yes, apache uses the log file specified in httpd.conf.

-tony

Renaud Manus wrote:
> By default, smf captures everything that is sent to stdout & stderr
> and redirects the output to /var/svc/log/service:instance.log.
> Services are still free to used their own log files and I believe
> apache is one of them (logs files are configured in the httpd.conf
> file).
>
> There are different ways to redirect the logs. If you have access
> to Sunsolve, Infodoc 87992 "How to redirect service log output with SMF"
> talks about them.
>
> You can use svccfg but it is not supported as a long term solution and
> should only be used for debug because it can break service upgrade.
>
> eg.
> # svccfg -s [FMRI] "setprop start/exec = \"[cmd] > /mylogfile 2>&1 \""
> # svcadm refresh [FMRI]
>
> -- Renaud
>
> -------- Original Message  --------
> Subject: [smf-discuss] Is it possible to change the log file for a service?
> From: Krafton <kraftonunique at yahoo.fr>
> To: smf-discuss at opensolaris.org
> Date: Tue Sep 04 2007 12:37:02 GMT+0200 (CEST)
>
>   
>> Hello,
>>
>> I'm new to solaris, I trying to understand the way SMF works, so sorry if my 
>> questions seems stupid :-)
>>
>> I just started playing with it for learning purpose.
>>
>> I have some questions regarding the log files.
>>
>> I seems logging of services goes to /var/svc/log
>>
>> Is this used for all usual operations logging? Does it mean that by exemple 
>> for apache2, everything is logged there (access, error, combined, virtual 
>> host logs)?
>>
>> Is is possible the change the place where these log files are located? I 
>> tried with svccfg whitout success.
>>
>> Please, need help from people with more experience in that domain.
>>
>> Thanks a lot.
>>  
>>  
>> This message posted from opensolaris.org
>> _______________________________________________
>> smf-discuss mailing list
>> smf-discuss at opensolaris.org
>>     
>
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org
>   


Reply via email to