[strongSwan] regarding starter when logging option is used
rakesh bansod
rakesh.bansod1209 at gmail.com
Wed Oct 16 13:16:47 CEST 2013
On 10/16/2013 04:13 PM, rakesh bansod wrote:
> Hi,
> whenever i try to use logging options in strongswan.conf. after
> starting the charon, it automatically recieves a sigint signal and it
> shows that it has stopped.
> but when i see ipsec statusall it still works.
> but as it has stopped in logs no further logs are recorded in file.
> this problem occurs only when i use re-directed logging if i use
> normal default logging, everything works fine.
> what could be the reason.
>
> my strongswan.conf
> charon {
>
> filelog {
> /log/ipsec.log {
> time_format = %b %e %T
> default = 1
> }
> stderr {
> ike = 2
> dmn = 2
> ike_name = yes
> }
> }
> }
>
>
>
> logs from file ipsec.log
>
> Oct 16 15:58:14 00[DMN] Starting IKE charon daemon (strongSwan 5.1.0,
> Linux 2.6.39.4-crl, i686)
> ------some more lines------
> Oct 16 16:10:19 00[JOB] spawning 16 worker threads
> Oct 16 16:10:19 11[CFG] received stroke: add connection 'net-1'
> Oct 16 16:10:19 11[CFG] added configuration 'net-1'
> Oct 16 16:10:19 13[CFG] received stroke: add connection 'host'
> Oct 16 16:10:19 13[CFG] added child to existing configuration 'net-1'
> Oct 16 16:11:50 02[CFG] received stroke: delete connection 'host'
> Oct 16 16:11:50 02[CFG] deleted connection 'host'
> Oct 16 16:12:04 00[DMN] signal of type SIGINT received. Shutting down
>
>
> please see what could be the reason..
>
> thank you
> Rakesh
>
>
>
>
I think i got it what the problem is.
it is showing delayed logs.
may it is writing in blocks.
waiting for buffer to fill and writing it whole at once.
this could be possibility.
tell me that if i am thinking correct or not.
if yes, is there any way to reduce the buffer size so that it could show
the logs earlier.
Thank you
Rakesh
More information about the Users
mailing list