Public bug reported:
After you issue a "service lighttpd reload" (or call
/etc/init.d/lighttpd directly with the same action), all further actions
stop working.
Example:
root@xenial-lighttpd-reload-1707312:~# service lighttpd start
root@xenial-lighttpd-reload-1707312:~# ps fxaw
PID TTY STAT TIME COMMAND
(...)
4361 ? Ss 0:00 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
So pid is 4361, and things are good. "status" is happy:
root@xenial-lighttpd-reload-1707312:~# service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor
preset: enabled)
Active: active (running) since Thu 2017-10-05 20:08:43 UTC; 45s ago
Process: 4356 ExecStartPre=/usr/sbin/lighttpd -t -f
/etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 4361 (lighttpd)
"restart" works and we get a new pid:
root@xenial-lighttpd-reload-1707312:~# service lighttpd restart
root@xenial-lighttpd-reload-1707312:~# pidof lighttpd
5281
root@xenial-lighttpd-reload-1707312:~# service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor
preset: enabled)
Active: active (running) since Thu 2017-10-05 20:09:58 UTC; 6s ago
Process: 5276 ExecStartPre=/usr/sbin/lighttpd -t -f
/etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 5281 (lighttpd)
Now let's "reload". The systemd job has no reload target, so the reload
code from the sysv script is used:
root@xenial-lighttpd-reload-1707312:~# service lighttpd reload
* Reloading web server configuration lighttpd
...done.
root@xenial-lighttpd-reload-1707312:~# pidof lighttpd
5912
We got a new PID, because that reload is more like a restart. But now things
are broken:
root@xenial-lighttpd-reload-1707312:~# service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor
preset: enabled)
Active: inactive (dead) since Thu 2017-10-05 20:10:49 UTC; 1min 2s ago
Process: 5281 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
(code=exited, status=0/SUCCESS)
Process: 5276 ExecStartPre=/usr/sbin/lighttpd -t -f
/etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 5281 (code=exited, status=0/SUCCESS)
And "restart" fails as well, because it tries to kill the process it thinks
should be there, fails, and also fails to start a new one up because the port
is already in use:
root@xenial-lighttpd-reload-1707312:~# service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor
preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 20:12:07 UTC; 1s ago
Process: 6853 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
(code=exited, status=255)
Process: 6848 ExecStartPre=/usr/sbin/lighttpd -t -f
/etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 6853 (code=exited, status=255)
Oct 05 20:12:07 xenial-lighttpd-reload-1707312 systemd[1]: Starting Lighttpd
Daemon...
Oct 05 20:12:07 xenial-lighttpd-reload-1707312 lighttpd[6848]: Syntax OK
Oct 05 20:12:07 xenial-lighttpd-reload-1707312 systemd[1]: Started Lighttpd
Daemon.
Oct 05 20:12:07 xenial-lighttpd-reload-1707312 lighttpd[6853]: 2017-10-05
20:12:07: (network.c.409) can't bind to port: 80 Address already in use
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lighttpd 1.4.35-4ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Thu Oct 5 20:06:12 2017
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lighttpd
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: lighttpd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug uec-images xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1721635
Title:
"reload" action breaks further actions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/1721635/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs