[systemd-devel] Wtrlt: Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Thu May 9 13:52:07 UTC 2019


(Sorry, I didn't sent to the list before)
>>> Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de> schrieb am 09.05.2019 um 14:25
in Nachricht <5CD44C9A.ED38.00A1.0 at rz.uni-regensburg.de>:
>>>> Michael Biebl <mbiebl at gmail.com> schrieb am 09.05.2019 um 12:26 in Nachricht
> <CAGWsdOi_9z8XBrQTyh0wGNJxP3JZKhs8gQeRXvJPo3ZriLRdTw at mail.gmail.com>:
> > Hi
> > 
> > Am Do., 9. Mai 2019 um 12:22 Uhr schrieb Ulrich Windl
> > <Ulrich.Windl at rz.uni-regensburg.de>:
> > 
> >> Despite of that I'm missing a "systemctl validate ..." command. That way I 
> > wouldn't need to execute start, status, stop, just to find out that some 
> > settings are rejected.
> > 
> > There is "systemd-analyze verify".
> 
> That sounds interesting, but it seems I'll have to be root to use it, and 
> the files have to be "installed" before they can be checked:
> > systemd-analyze verify systemd/iotwatch.target.in
> Failed to open /dev/tty0: Permission denied
> Failed to load systemd/iotwatch.target.in: Invalid argument
> 
> Maybe I just did not understand how to use it (this time as root):
> # systemd-analyze verify /usr/lib/iotwatch/iotwatch.target.in
> Failed to load /usr/lib/iotwatch/iotwatch.target.in: Invalid argument
> # systemd-analyze verify /usr/lib/systemd/system/iotwatch at .service
> Failed to load /usr/lib/systemd/system/iotwatch at .service: Invalid argument
> # systemd-analyze verify iotwatch at .service
> Failed to load iotwatch at .service: Invalid argument
> 
> (I'm glad that my C-compiler provides better error messages)
> 
> Regards,
> Ulrich
> 
> 






More information about the systemd-devel mailing list