Systemd-analyze: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
Zeile 12: | Zeile 12: | ||
# https://akashrajpurohit.com/snippets/verify-a-systemd-service-file/ | # https://akashrajpurohit.com/snippets/verify-a-systemd-service-file/ | ||
# https://www.freedesktop.org/software/systemd/man/latest/systemd-analyze.html | # https://www.freedesktop.org/software/systemd/man/latest/systemd-analyze.html | ||
# https://manpages.debian.org/bookworm/manpages-de/systemd-analyze.1.de.html | |||
[[Kategorie:Systemd]] | [[Kategorie:Systemd]] |
Version vom 30. April 2025, 13:31 Uhr
Use the systemd-analyze verify command to check if a SystemD service file is valid and has no syntax errors.
sudo systemd-analyze verify /etc/systemd/system/my-service.service
If the service file is valid, the command will return nothing. If there are any errors, they will be displayed in the output.
/etc/systemd/system/my-service.service:3: Failed to add dependency on my-service.service, ignoring: Invalid argument