Re: [systemd-devel] Wtrlt: Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)
On Do, 09.05.19 15:52, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > (Sorry, I didn't sent to the list before) > >>> Ulrich Windl schrieb am 09.05.2019 um > >>> 14:25 > in Nachricht <5cd44c9a.ed38.00a...@rz.uni-regensburg.de>: > Michael Biebl schrieb am 09.05.2019 um 12:26 in > Nachricht > > : > > > Hi > > > > > > Am Do., 9. Mai 2019 um 12:22 Uhr schrieb Ulrich Windl > > > : > > > > > >> 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 These limitations where lifted a long time ago. Please update. Lennart -- Lennart Poettering, Berlin ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] Wtrlt: Antw: Re: Arbitrary restrictions (e.g. for RuntimeDirectory)
(Sorry, I didn't sent to the list before) >>> Ulrich Windl schrieb am 09.05.2019 um >>> 14:25 in Nachricht <5cd44c9a.ed38.00a...@rz.uni-regensburg.de>: Michael Biebl schrieb am 09.05.2019 um 12:26 in Nachricht > : > > Hi > > > > Am Do., 9. Mai 2019 um 12:22 Uhr schrieb Ulrich Windl > > : > > > >> 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@.service > Failed to load /usr/lib/systemd/system/iotwatch@.service: Invalid argument > # systemd-analyze verify iotwatch@.service > Failed to load iotwatch@.service: Invalid argument > > (I'm glad that my C-compiler provides better error messages) > > Regards, > Ulrich > > ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel