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
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[
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
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
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
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
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
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