[systemd-devel] option to wait for pid file to appear

Jonathan de Boyne Pollard J.deBoynePollard-newsgroups at NTLWorld.COM
Fri Jun 8 20:04:25 UTC 2018


Mantas Mikulėnas:
> Maybe socket-activation would work for you? (With Nginx it's also a 
> hack though.)

Accept=No
Environment=NGINX=3;

It is not terrifically complex.  The documented way to stop the forking 
is "daemon off", but an inherited listening socket also does it.

* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728015

* 
https://github.com/nginx/nginx/blob/8e8734ec82cde91a02d0cbfaae0d0df6b5aaab14/src/core/nginx.c#L347


More information about the systemd-devel mailing list