I have a long command-line to put into a systemd ExecStart entry. I understand I can break a long line into multiple ones by ending each non-final line with a backslash.
However, how can I document the parts with comments? E.g. the following won't work:
ExecStart=/bin/ssh -NT -o ExitOnForwardFailure=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=3 \
# local tunnel for this
-L 172.16.12.34:10001:localhost:10001 \
# remote tunnel for that
-R3128:127.0.0.1:3128 \
someserver
If I remove the lines with '#', it works, but then I lose the documentation. If fine-grain in-place documentation of parts of a long command-line is fundamentally impossible, what are some useful alternatives?