[Buildroot] [PATCH] package/nginx: fix NGINX pidfile handling systemd

Arnout Vandecappelle arnout at mind.be
Fri May 28 16:05:54 UTC 2021



On 28/05/2021 17:46, Peter Korsgaard wrote:
>>>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:
> 
> Hi,
> 
>  >  Unfortunately, not so easy in practice. "daemon off" means a change in the
>  > configuration file, which is typically going to be modified by the user. Also,
>  > it's something that comes from nginx itself, so we'd have to patch the one that
>  > gets installed by nginx (and that one will probably be overwritten anyway in an
>  > overlay).
> 
> Notice that you can override the configuration on the command line with
> the -g option (-g 'daemon off;')

 I didn't realize that was possible! Then we can do it from the service file
directly, and it becomes trivial. Matt?

 Regards,
 Arnout

> like it is typically done in
> Dockerfiles:
> 
> https://github.com/nginxinc/docker-nginx/blob/master/Dockerfile-debian.template#L106
> 



More information about the buildroot mailing list