On 20/06/2016 12:50 πμ, Jason Harvey wrote:
> Is it valid to have multiple ExecReload statements?
> 
> The way I've achieved this in my setup is as follows:
> 
> |ExecReload=/bin/bash -c '*@SBINDIR@/haproxy*-c -f $CONFIG&&/bin/kill -USR2
> $MAINPID'|
> 
> 

Yes, it is valid configuration which has been working fine in production.
From systemd.service manual page:

ExecStart=
...
Multiple command lines may be concatenated in a single directive by separating
them with semicolons (these semicolons must be passed as separate words).
Alternatively, this directive may be specified more than once with the same
effect.

...
...
ExecReload=
Commands to execute to trigger a configuration reload in the service. This
argument takes multiple command lines, following the same scheme as described
for ExecStart= above
...

Cheers,
Pavlos

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to