Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Mantas Mikulėnas
On Wed, Aug 16, 2017 at 1:09 PM, Reindl Harald wrote: > > > Am 16.08.2017 um 12:04 schrieb Mantas Mikulėnas: > >> On Wed, Aug 16, 2017 at 12:09 PM, Reindl Harald > > wrote: >> >> >> Am 16.08.2017 um 10:31 schrieb

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Colin Guthrie
Kai Hendry wrote on 16/08/17 08:52: > Hi there, > > I maintain a service file with a lot of switches in the ExecStart > https://github.com/kaihendry/pingprom/blob/master/prometheus%40.service#L8 > > I want to almost document each switch ... e.g. > -storage.local.retention=8544h # keep data for

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Mantas Mikulėnas
On Wed, Aug 16, 2017 at 12:09 PM, Reindl Harald 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: >>

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Reindl Harald
Am 16.08.2017 um 12:04 schrieb Mantas Mikulėnas: On Wed, Aug 16, 2017 at 12:09 PM, Reindl Harald > 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

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Reindl Harald
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

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Jérémy Rosen
On 16/08/2017 10:31, Mantas Mikulėnas wrote: On Wed, Aug 16, 2017 at 10:52 AM, Kai Hendry > wrote: Hi there, I maintain a service file with a lot of switches in the ExecStart

Re: [systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Mantas Mikulėnas
On Wed, Aug 16, 2017 at 10:52 AM, Kai Hendry wrote: > Hi there, > > I maintain a service file with a lot of switches in the ExecStart > https://github.com/kaihendry/pingprom/blob/master/prometheus%40.service#L8 > > I want to almost document each switch ... e.g. >