[Buildroot] [PATCH 5/5] package/nginx: fix error is nginx.service
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun May 1 21:47:46 UTC 2016
Hello,
On Sun, 1 May 2016 20:52:25 +0100, Martin Bark wrote:
> -ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx; /usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
> +ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx ; /usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
Isn't:
ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx
ExecStartPre=/usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
a better solution?
According to man systemd.service:
ExecStartPre=, ExecStartPost=
Additional commands that are executed before or after the command
in ExecStart=, respectively. Syntax is the same as for ExecStart=,
except that multiple command lines are allowed and the commands are
executed one after the other, serially.
(To be tested, I don't know much about systemd).
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list