Quadlets can be debugged with systemd-analyze --generators=true verify example.service
(an alternative to podman-system-generator -dryrun
)
#24891
eriksjolund
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two files my1.container and my2.container. The first one contains a syntax error (the key
jImage
)/var/home/test/.config/containers/systemd/my1.container
/var/home/test/.config/containers/systemd/my2.container
Test 1
Test 2
Discussion
The command
seems to be more user-friendly because it just prints the error messages.
It is possible to achieve a similar result by adding
> /dev/null
(Some additional lines containing
Loading source unit file
are also listed)Side note 1: I verified that it is possible to analyse a quadlets in a custom directory path with
Side note 2:
The command systemd-analyze verify performs additional checks on
the generated service unit. (See https://www.man7.org/linux/man-pages/man1/systemd-analyze.1.html)
Beta Was this translation helpful? Give feedback.
All reactions