Re: [systemd-devel] miredo unit files

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 18:34, Alexander E. Patrakov (patra...@gmail.com) wrote: > >Hmm, I am not sure how miredo works. Is the client something where you > >have to run one instance per network iface? Or do you have a global > >instance for all? If the latter, then why doesn't it watch the network > >in

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 18:00, Alexander E. Patrakov (patra...@gmail.com) wrote: > > 18.01.2011 04:48, Lennart Poettering wrote: > > > >What systemd currently does is: > > > > If the reload fails it shutdowns the service and informs you about > > the failure. > > > >What systemd probably should

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 17:56, Alexander E. Patrakov (patra...@gmail.com) wrote: > 18.01.2011 16:51, Lennart Poettering пишет: > >On Tue, 18.01.11 16:41, Alexander E. Patrakov (patra...@gmail.com) wrote: > > > >>>How is this implemented in detail? Sending SIGINT is async, so at the > >>>time you start th

Re: [systemd-devel] Assertion failed in systemd v16

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 14:04, Marius Tolzmann (tolzm...@molgen.mpg.de) wrote: > > hi.. > > On 01/18/11 13:30, Alexander E. Patrakov wrote: > > > >>As you noticed, this changes the PID, and systemd currently cannot > >>handle this. > >> > >>We could however reload the PID file after a reload completed

Re: [systemd-devel] Assertion failed in systemd v16

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 17:30, Alexander E. Patrakov (patra...@gmail.com) wrote: > >>ExecStart=/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf > >>ExecStop=/bin/kill -INT $MAINPID > >This is asynchronous. The stop operation is supposed to be synchronous > >however, should not return before it finished.

Re: [systemd-devel] miredo unit files

2011-01-18 Thread Alexander E. Patrakov
18.01.2011 03:54, Lennart Poettering wrote: On Fri, 07.01.11 22:26, Henry Gebhardt (hsggebha...@googlemail.com) wrote: Dear list members, I have been maintaining a systemd overlay for Gentoo. Hence i was contacted about how to get miredo running with systemd. I herefore forward you the email

Re: [systemd-devel] Assertion failed in systemd v16

2011-01-18 Thread Marius Tolzmann
hi.. On 01/18/11 13:30, Alexander E. Patrakov wrote: As you noticed, this changes the PID, and systemd currently cannot handle this. We could however reload the PID file after a reload completed I guess. (/me adds this to the todo list) Well, there are cases (live update of nginx, see http:

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Alexander E. Patrakov
18.01.2011 04:48, Lennart Poettering wrote: What systemd currently does is: If the reload fails it shutdowns the service and informs you about the failure. What systemd probably should do (and what is now in the TODO list) is: If the reload fails it should leave the service as

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Alexander E. Patrakov
18.01.2011 16:51, Lennart Poettering пишет: On Tue, 18.01.11 16:41, Alexander E. Patrakov (patra...@gmail.com) wrote: How is this implemented in detail? Sending SIGINT is async, so at the time you start the new instance you cannot be sure that the old instance has stopped listening? Indeed, th

Re: [systemd-devel] Assertion failed in systemd v16

2011-01-18 Thread Alexander E. Patrakov
18.01.2011 04:14, Lennart Poettering пишет: On Mon, 10.01.11 15:11, Alexander E. Patrakov (patra...@gmail.com) wrote: [Unit] Description=Lighttpd Web Server After=network.target [Service] Type=forking EnvironmentFile=/etc/conf.d/lighttpd PIDFile=/var/run/lighttpd.pid ExecStartPre=/usr/sbin/lig

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 16:41, Alexander E. Patrakov (patra...@gmail.com) wrote: > >How is this implemented in detail? Sending SIGINT is async, so at the > >time you start the new instance you cannot be sure that the old instance > >has stopped listening? > > Indeed, there is a race here. That's why "/b

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Alexander E. Patrakov
18.01.2011 04:23, Lennart Poettering wrote: On Tue, 11.01.11 09:54, Alexander E. Patrakov (patra...@gmail.com) wrote: instances of lighttpd to coexist for some time. See: after SIGINT, the old instance does not listen on port 80, but continues servicing large downloads that are still in progres

Re: [systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

2011-01-18 Thread Marius Tolzmann
hi.. On 01/18/11 00:50, Lennart Poettering wrote: If ExecReload= is fixed to allow multiple lines without crashing, and also doesn't shut down the service if a reload command fails then you will not need ExecConfigTest, correct? true true 8) btw systemd is doing great in our linux-from-scra

Re: [systemd-devel] systemd hang on booting after mount

2011-01-18 Thread Kay Sievers
On Tue, Jan 18, 2011 at 10:48, Lennart Poettering wrote: > One other guess is that your kernel is too old, you need the > /sys/fs/cgroup mount point which is only available in recent kernels... That should be in 2.6.36, which is mentioned earlier in the thread. To check, it's this commit: htt

Re: [systemd-devel] systemd hang on booting after mount

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 10:45, Lennart Poettering (lenn...@poettering.net) wrote: > On Tue, 18.01.11 14:05, Chanwoo Choi (cwcho...@gmail.com) wrote: > > > > > General Setup --> > > [*] Control Group support --> > > [ ] Example debug cgoup subsystem > > [ ] Namespace cgroup s

Re: [systemd-devel] systemd hang on booting after mount

2011-01-18 Thread Lennart Poettering
On Tue, 18.01.11 14:05, Chanwoo Choi (cwcho...@gmail.com) wrote: > > General Setup --> > [*] Control Group support --> > [ ] Example debug cgoup subsystem > [ ] Namespace cgroup subsystem > [ ] Freezer cgroup subsystem > [ ] Device con