[systemd-devel] Formatting Execstart= for readability
Reindl Harald
h.reindl at thelounge.net
Wed Aug 16 09:09:23 UTC 2017
Am 16.08.2017 um 10:31 schrieb Mantas Mikulėnas:
> Just put everything in a shell script. (That way you can test it
> directly without systemd, too.)
>
> With bash, you can use inline comments in arrays:
>
> #!/usr/bin/env bash
> args=(
> -X POST # foo
> -d "fizz=systemd" # some docs
> -d "some=else" # more docs
> https://requestb.in/foo
> )
>
> exec curl "${args[@]}"
this is the worst recommendation one can give - really - that way you
easily lose all the advantages of systemd in case of error handling
More information about the systemd-devel
mailing list