spujadas / lighttpd-docker

Docker image for lighttpd, a secure, fast, compliant, and flexible web server
MIT License
59 stars 65 forks source link

Run lighttpd as "pid 1" to shutdown properly #6

Closed nichivo closed 5 years ago

nichivo commented 5 years ago

Currently "docker stop" sends signals to sh which isn't a process manager and doesn't pass signals to spawned processes. Docker forcibly terminates the processes after 10 seconds.

This allows the lighttpd process to receive signals like "docker stop" and immediately shutdown gracefully.

spujadas commented 5 years ago

Nice, thanks.