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] 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] 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] Assertion failed in systemd v16

2011-01-17 Thread 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/lighttpd -t -f /etc/lighttpd/lig

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

2011-01-10 Thread Kay Sievers
On Mon, Jan 10, 2011 at 13:30, Alexander E. Patrakov wrote: >> [ 3639.047649] systemd[1]: Assertion 's->control_command_id == >> SERVICE_EXEC_START' failed at src/service.c:2184, function >> service_run_next_main(). Aborting. > #ExecReload=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf > E

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

2011-01-10 Thread Alexander E. Patrakov
I wrote: Here is what happened when I tried to reload lighttpd while looking with strace whan systemd is doing: [ 3639.047649] systemd[1]: Assertion 's->control_command_id == SERVICE_EXEC_START' failed at src/service.c:2184, function service_run_next_main(). Aborting. [ 3639.052182] systemd[

[systemd-devel] Assertion failed in systemd v16

2011-01-10 Thread Alexander E. Patrakov
Hi. I tried to write a systemd service file for lighttpd (to be used in Gentoo). As described here, lighttpd implements a peculiar scheme for graceful restarts: http://blog.lighttpd.net/articles/2005/09/02/graceful-restart As happens with all too-clever solutions, it doesn't work well. For