Le 26/11/2013 09:22, Christos Trochalakis a écrit :
On Mon, Nov 25, 2013 at 09:24:10PM +0100, Adrien Clerc wrote:
Le 25/11/2013 16:27, Christos Trochalakis a écrit :

logs with type=simple:

About to execute: /usr/sbin/nginx -g 'daemon on; master_process on;'
Please use the command line "/usr/sbin/nginx -g 'daemon off; master_process on;'" with type=simple. Otherwise, this is clearly NOT what systemd expects.

Setting daemon off is indeed correct from systemd's perspective but not
for nginx. daemon off is not intented to be used in production, for
example nginx will stop responding to SIGWINCH signals (graceful
shutdown of worker processes)[0].

[0] http://anonscm.debian.org/gitweb/?p=collab-maint/nginx.git;a=blob;f=src/os/unix/ngx_process.c;h=4ef3582e8a2b1b050fcb071c607e6fe194c8b174;hb=HEAD#l343


OK, then, if nginx works that way, it's not up to the init process to force its behavior :) It's not the only process that need to fork, by the way, but I just try to hunt this from systemd's service files whenever this is not needed.

Adrien


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to