[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

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[

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

[systemd-devel] [PATCH] service: Allow mainpid to restart in other than SERVICE_EXEC_START.

2011-01-10 Thread Mirco Tischler
This patch should fix it. Can you test it? The problem was that after a the mainpid exits, and because there are commands left to execute systemd assumes it executes an ExecStart line from a type=oneshot service file. But in this case it executes an ExecReload line. This patch simply removes the as

Re: [systemd-devel] [PATCH] service: Allow mainpid to restart in other than SERVICE_EXEC_START.

2011-01-10 Thread Alexander E. Patrakov
10.01.2011 18:57, Mirco Tischler wrote: This patch should fix it. Can you test it? The problem was that after a the mainpid exits, and because there are commands left to execute systemd assumes it executes an ExecStart line from a type=oneshot service file. But in this case it executes an ExecRel

Re: [systemd-devel] [PATCH] service: Allow mainpid to restart in other than SERVICE_EXEC_START.

2011-01-10 Thread Alexander E. Patrakov
10.01.2011 18:57, Mirco Tischler wrote: This patch should fix it. Can you test it? The problem was that after a the mainpid exits, and because there are commands left to execute systemd assumes it executes an ExecStart line from a type=oneshot service file. But in this case it executes an ExecRel

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

2011-01-10 Thread Marius Tolzmann
hi.. [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/lighttpd.conf ExecStart=/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf ExecStop=/bin

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

2011-01-10 Thread Alexander E. Patrakov
10.01.2011 22:49, Marius Tolzmann wrote: hi.. [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/lighttpd.conf ExecStart=/usr/sbin/lighttpd -f