(Sorry, I didn't sent to the list before) >>> Ulrich Windl <[email protected]> schrieb am 09.05.2019 um >>> 14:25 in Nachricht <[email protected]>: >>>> Michael Biebl <[email protected]> schrieb am 09.05.2019 um 12:26 in >>>> Nachricht > <cagwsdoi_9z8xbrqtyh0wgnjxp3jzkhs8gqerxvjpo3zrilr...@mail.gmail.com>: > > Hi > > > > Am Do., 9. Mai 2019 um 12:22 Uhr schrieb Ulrich Windl > > <[email protected]>: > > > >> 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/[email protected] > Failed to load /usr/lib/systemd/system/[email protected]: Invalid argument > # systemd-analyze verify [email protected] > Failed to load [email protected]: Invalid argument > > (I'm glad that my C-compiler provides better error messages) > > Regards, > Ulrich > >
_______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
