Re: Sometimes multilog rotates the logfile when receiving a sigterm

Rodrigo Campos <[email protected]> Wed, 14 Oct 2009 22:54:19 -0300
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
2009/8/30 Daryl Tester <[email protected]>:
> (* Reply to /dev/null'd *)
>
> Rodrigo Campos wrote:
>
>>> If you mean the first process, no.
>
> ...
>
>> Yes, you are right. Sorry
>
> You don't have to apologise - if you're learning anything from this,
> then it's good. =A0:-)

=3D)


>> Although avoiding the signals to arrive to
>> multilog seems to be what I really want (if that is what is causing it
>> to generate the .u files I'm seeing).
>
> Remember that this is behaviour is most likely caused by your *interactiv=
e*
> shell. =A0A shell spawned out of crontab or start
> script is very unlikely to send a signal to a process *group*
> (or see ^C from a controlling tty). =A0If your final environment
> is running multilog non-interactively then you're unlikely to
> see any of the behaviour you're trying to avoid here.

Well, it was started from a "start script", have no tty attached and
it *shouldn't* be interactive. But it seems in QNX 6.3.2 /bin/sh is a
ksh by default and it runs in interactive mode no matters what
(although then I found the +i option, but I didn't try it)

I just changed it to bash and that made the trick (since it didn't run
in interactive mode). Although I don't fully understand how this
solved it, since the signal that was sent to the process was a SIGTERM
(in the "production" environment, not in my simple tests)


Anyways, it seems to be solved :)





Thanks a lot for your help,

Rodrigo