Re: [systemd-devel] ExecStartPre checking conf

2019-05-20 Thread Uoti Urpala
On Mon, 2019-05-20 at 11:56 +0200, Lennart Poettering wrote: > about that though). Using ExecStartPre= for a syntax checker appears > pretty pointless to me, as yes, you just end up doing the same work > twice, and you might as well have the ExecStart= fail rather than the > ExecStartPre=, there's

Re: [systemd-devel] ExecStartPre checking conf

2019-05-20 Thread Lennart Poettering
On Mo, 20.05.19 12:37, Olaf van der Spek (m...@vdspek.org) wrote: > On Mon, May 20, 2019 at 11:56 AM Lennart Poettering > wrote: > > > > On So, 19.05.19 11:45, Olaf van der Spek (m...@vdspek.org) wrote: > > > > > Hi, > > > > > > ExecStartPre is sometimes used to check the configuration. Does this

Re: [systemd-devel] ExecStartPre checking conf

2019-05-20 Thread Olaf van der Spek
On Mon, May 20, 2019 at 11:56 AM Lennart Poettering wrote: > > On So, 19.05.19 11:45, Olaf van der Spek (m...@vdspek.org) wrote: > > > Hi, > > > > ExecStartPre is sometimes used to check the configuration. Does this > > make sense? > > I don't think it does. I figure what people are actually looki

Re: [systemd-devel] ExecStartPre checking conf

2019-05-20 Thread Lennart Poettering
On So, 19.05.19 11:45, Olaf van der Spek (m...@vdspek.org) wrote: > Hi, > > ExecStartPre is sometimes used to check the configuration. Does this > make sense? I don't think it does. I figure what people are actually looking for is a way they can run a syntax checker on restart, before stopping th

Re: [systemd-devel] ExecStartPre checking conf

2019-05-20 Thread Olaf van der Spek
On Sun, May 19, 2019 at 12:26 PM Reindl Harald wrote: > Am 19.05.19 um 11:45 schrieb Olaf van der Spek: > > ExecStartPre is sometimes used to check the configuration. Does this make > > sense? > > It seems this causes a lot of code to run twice, as the configuration > > is checked on the real inv

Re: [systemd-devel] ExecStartPre checking conf

2019-05-19 Thread Andy Pieters
On Sun, May 19, 2019 at 11:26 AM Reindl Harald wrote: > > > Am 19.05.19 um 11:45 schrieb Olaf van der Spek: > > ExecStartPre is sometimes used to check the configuration. Does this > make sense? > > It seems this causes a lot of code to run twice, as the configuration > > is checked on the real i

Re: [systemd-devel] ExecStartPre checking conf

2019-05-19 Thread Reindl Harald
Am 19.05.19 um 11:45 schrieb Olaf van der Spek: > ExecStartPre is sometimes used to check the configuration. Does this make > sense? > It seems this causes a lot of code to run twice, as the configuration > is checked on the real invocation anyway. > > [Unit] > Description=Lighttpd Daemon > Aft

[systemd-devel] ExecStartPre checking conf

2019-05-19 Thread Olaf van der Spek
Hi, ExecStartPre is sometimes used to check the configuration. Does this make sense? It seems this causes a lot of code to run twice, as the configuration is checked on the real invocation anyway. [Unit] Description=Lighttpd Daemon After=network-online.target [Service] Type=simple PIDFile=/var/r