Re: [Exim] syslog

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Chris Edwards
Data:  
Para: exim-users
Asunto: Re: [Exim] syslog
Philip Hazel wrote:

| I've just tried this and it worked for me (only difference being a
| different file name). At least, it logged the start-up of the daemon in
| both places, which was all I checked.


OK - the daemon is syslogging its arguments at startup:

exim[11327]: 1999-11-11 13:26:26 3 args: exim -bd -q10m

but not the real startup message:

  exim[11327]: 1999-11-11 13:26:26 exim 3.092 daemon started:
      pid=11327, -q10m listening for SMTP on port 25


nor anything else. As far as I can see, the daemon exim closes all
descriptors, including the one used by syslog(), so nothing more ever gets
logged.

Adding a call to closelog() *before* closing all descriptors appears to
sort this, although I don't totally understand why.

Chris

----------------------------------------------------------------------------
|  Chris Edwards                                                            |
|  UNIX systems support                                                     |
|  Glasgow University Computing Service                                     |
|  +44 (0)141 330 4892                                                      |

----------------------------------------------------------------------------