Re: systemd configuration with service configuration check

2024-11-28 Thread Barry Scott
> On 28 Nov 2024, at 14:40, polak...@niif.hu wrote: > > This would make restarting less trouble because the system will *work* with > the old configuration. I do not think it will allow for this. Better that you get into the habit of checking the config after any change you make. Otherwise a

Re: systemd configuration with service configuration check

2024-11-28 Thread Barry Scott
> On 28 Nov 2024, at 14:40, polak...@niif.hu wrote: > > On the one hand, it is possible to check the configuration before starting, > e.g. "sshd -t". I am not sure what you expect this to help with. If the config is bad the service will not start. That is, I assume, exactly what having the s

systemd configuration with service configuration check

2024-11-28 Thread polakovi
Hi, Novice question: A service that can be run under systemd is given. On the one hand, it is possible to check the configuration before starting, e.g. "sshd -t". I would like a systemd configuration file that contains the configuration check. For this, the '[Service] ExecStartPre=' directive see