Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-28 Thread Gabriel Kerneis
On Fri, Sep 27, 2013 at 11:21:54PM +0200, Juliusz Chroboczek wrote: The problem, Shawn, is that logging-out sends SIGHUP to the process group or session that is being shut down. If SIGHUP doesn't cause Polipo to quit, then a Polipo running in a terminal will not be shut down when you log out.

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-27 Thread Juliusz Chroboczek
I don't believe SIGHUP should kill a process either. I think it should have the effect of 'rebooting' it (reread the configs, confirm connections, etc) but not die. The problem, Shawn, is that logging-out sends SIGHUP to the process group or session that is being shut down. If SIGHUP doesn't

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-24 Thread Gabriel Kerneis
On Mon, Sep 23, 2013 at 11:19:43PM -0500, Charles N Wyble wrote: Um. What is confusing about this? Different behaviour depending on a seemingly unrelated flag, wouldn't work with daemon managers that refuse double-fork (such as runit). On second thought, if it really needs to be tweaked, a

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-24 Thread Matthieu Boutier
Hello, I believe the right way should be to configure the logger for babeld so that it could use the appropriate signal. I don't know all loggers, but here is the default debian logrotate's config file for babeld: $ cat /etc/logrotate.d/babeld /var/log/babeld.log { weekly rotate 8

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-24 Thread Julien Cristau
On Tue, Sep 24, 2013 at 09:11:12 +0100, Gabriel Kerneis wrote: On Mon, Sep 23, 2013 at 11:19:43PM -0500, Charles N Wyble wrote: Um. What is confusing about this? Different behaviour depending on a seemingly unrelated flag, wouldn't work with daemon managers that refuse double-fork (such

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-23 Thread Charles N Wyble
Um. What is confusing about this? +1 for this proposal. Juliusz Chroboczek j...@pps.univ-paris-diderot.fr wrote: What about quitting on SIGHUP only if babeld is run on non-daemon mode? I'd find that confusing. Other opinions? -- Juliusz ___

[Babel-users] SIGHUP shouldn't kill babeld

2013-09-22 Thread Antoine Beaupré
Hello! After noticing a 80MB babeld logfile on my router, I figured I would implement log rotation for it. Unfortunately, it turns out that babeld exits when it receives SIGHUP, the default signal delivered by log rotation software (at least newsyslog in FreeBSD and logrotate in Debian). It is a

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-22 Thread Juliusz Chroboczek
What about quitting on SIGHUP only if babeld is run on non-daemon mode? I'd find that confusing. Other opinions? -- Juliusz ___ Babel-users mailing list Babel-users@lists.alioth.debian.org

Re: [Babel-users] SIGHUP shouldn't kill babeld

2013-09-22 Thread Henning Rogge
Maybe a parameter to tell babeld don't stop with SIGHUP ? So a startup script can prevent the restart from happening? Henning Rogge On Sun, Sep 22, 2013 at 8:26 PM, Juliusz Chroboczek j...@pps.univ-paris-diderot.fr wrote: What about quitting on SIGHUP only if babeld is run on non-daemon mode?