Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.4
-
None
-
None
Description
Ensure our systemd service files pass validation with https://www.freedesktop.org/software/systemd/man/systemd-analyze.html
systemd-analyze verify FILE...
This command will load unit files and print warnings if any errors are detected. Files specified on the command line will be loaded, but also any other units referenced by them. The full unit search path is formed by combining the directories for all command line arguments, and the usual unit load paths (variable $SYSTEMD_UNIT_PATH is supported, and may be used to replace or augment the compiled in set of unit load paths; see systemd.unit(5)). All units files present in the directories containing the command line arguments will be used in preference to the other paths.
The following errors are currently detected:
- unknown sections and directives,
- missing dependencies which are required to start the given unit,
- man pages listed in Documentation= which are not found in the system,
- commands listed in ExecStart= and similar which are not found in the system or not executable.
I already tested but failed to get it even running:
system 1, virtual machine:
systemd-analyze verify mariadb.service
|
Attempted to remove disk file system, and we can't allow that.
|
system 2, docker container:
systemd-analyze verify mariadb.service
|
Couldn't move remaining userspace processes, ignoring: Input/output error
|