On Wed, Aug 16, 2017 at 12:09 PM, Reindl Harald <h.rei...@thelounge.net> wrote:
> > 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 For example? -- Mantas Mikulėnas <graw...@gmail.com>
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel