Re: [systemd-devel] GuessMainPID=no required to make daemon reload work

2014-05-19 Thread Brandon Black
On Fri, May 16, 2014 at 9:38 AM, Lennart Poettering lenn...@poettering.netwrote: On Thu, 15.05.14 20:57, Brandon Black (blbl...@gmail.com) wrote: On Thu, May 15, 2014 at 6:40 PM, Lennart Poettering lenn...@poettering.netwrote: But again, it's generally not a good idea to keep file

Re: [systemd-devel] GuessMainPID=no required to make daemon reload work

2014-05-15 Thread Brandon Black
On Thu, May 15, 2014 at 6:40 PM, Lennart Poettering lenn...@poettering.netwrote: But again, it's generally not a good idea to keep file locks for a longer period of time, much as with mutexes... You don't want to make other apps which try to get an atomic view on the file hang for long. If

Re: [systemd-devel] Revisiting the ExecRestart issue

2014-05-04 Thread Brandon Black
On Thu, Apr 24, 2014 at 1:34 AM, Lennart Poettering lenn...@poettering.netwrote: On Wed, 23.04.14 21:20, Brandon Black (blbl...@gmail.com) wrote: The problem here is that the daemon performs operations that require root privilege on startup, and then dumps its privileges for runtime

Re: [systemd-devel] Revisiting the ExecRestart issue

2014-04-23 Thread Brandon Black
On Wed, Apr 23, 2014 at 1:18 AM, Lennart Poettering lenn...@poettering.netwrote: UDP is lossy anyway, and a startup delay of a few seconds shouldn't be an issue at all. If we are speaking of 15min or so here, that might be a problem, but otherwise this really sounds fine. And if your daemon

Re: [systemd-devel] Revisiting the ExecRestart issue

2014-04-23 Thread Brandon Black
On Wed, Apr 23, 2014 at 3:06 PM, Lennart Poettering lenn...@poettering.netwrote: To recap my results: there were primarily two things in the way of naively using ExecReload to trigger gdnsd's overlapped restart: 1) gdnsd wants to use sd_notifyf() to indicate the MAINPID switch in the

Re: [systemd-devel] Revisiting the ExecRestart issue

2014-03-31 Thread Brandon Black
On Sat, Mar 29, 2014 at 9:09 PM, Michael Scherer m...@zarb.org wrote: Le vendredi 28 mars 2014 à 12:12 -0500, Brandon Black a écrit : 4) Socket Activation! I know this is what some will scream when they skim the above, but it's not a realistic solution in this case for a few reasons

[systemd-devel] Revisiting the ExecRestart issue

2014-03-28 Thread Brandon Black
Hi all, I've brought this up before, but I became busy/discouraged and dropped the ball. As systemd becomes increasingly widely deployed, I can no longer afford to do so, so I'd like to explore this area a bit further on the list again and see if we can't come up with a workable solution, or

[systemd-devel] ExecRestart

2012-11-29 Thread Brandon Black
Hi all, I'm trying to write a systemd.service unit file for an existing well-behaved daemon that's used to managing itself. The daemon binary doubles as its own controller for sysvinit-like command. For example foo start launches a new daemon. foo stop stops an existing instance of the

Re: [systemd-devel] ExecRestart

2012-11-29 Thread Brandon Black
On Thu, Nov 29, 2012 at 11:36 AM, Alexander E. Patrakov patra...@gmail.comwrote: Brandon Black blbl...@gmail.com wrote: The daemon's fast restart code does all of the expensive startup operations in the new daemon first (e.g. parsing large data input), then This is not what a restart means