Systemd Unitfile Linter
Project description
Systemd Unitfile Linter
Usage
usage: systemdlint [-h] [--nodropins] [--rootpath ROOTPATH]
[--sversion SVERSION] [--output OUTPUT]
files [files ...]
Systemd Unitfile Linter
positional arguments:
files Files to parse
optional arguments:
-h, --help show this help message and exit
--nodropins Ignore Drop-Ins for parsing
--rootpath ROOTPATH Root path
--sversion SVERSION Version of Systemd to be used
--output OUTPUT Where to flush the findings (default: stderr)
Output
The tool will return
{file}:{line}:{severity} \[{id}\] - {message}
example:
/lib/systemd/system/console-shell.service:18:info [NoFailureCheck] - Return-code check is disabled. Errors are not reported
/lib/systemd/system/plymouth-halt.service:11:info [NoFailureCheck] - Return-code check is disabled. Errors are not reported
/lib/systemd/system/systemd-ask-password-console.service:12:warning [ReferencedUnitNotFound] - The Unit 'systemd-vconsole-setup.service' referenced was not found in filesystem
/lib/systemd/system/basic.target:19:warning [ReferencedUnitNotFound] - The Unit 'tmp.mount' referenced was not found in filesystem
Detectable Errors
ConflictingOptions - The set option somehow is in conflict with another unit
ExecNotFound - The referenced executable was not found on system
FullPrivileges - An executable is run with full privileges
InvalidNumericBase - A numeric value doesn’t match because it needs to be a multiple of X
InvalidSetting - The option doesn’t match the section
InvalidValue - An invalid value is set
MandatoryOptionMissing - A mandatory option was missing in the file
Multiplicity - The option is not valid for the given amount of options in this context
NoExecutable - The referenced executable is NOT executable
NoFailureCheck - An executable is run without checking for failures
OptionDeprecated - The used option is not available anymore in this version
OptionTooNew - The used option will be available in a later version than used
ReferencedUnitNotFound - The unit referenced was not found in system
SettingRequires - The option requires another option to be set
SettingRestricted - The option can’t be set due to another option
SyntaxError - The file is not parsable
UnitSectionMissing - The Unit-section is missing in the file
UnknownUnitType - The file extension of the file is not a known systemd one
WrongFileMask - The file has a risky filemode set
ErrorCyclicDependency - Unit creates a cyclic dependency
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file systemdlint-1.1.1.tar.gz.
File metadata
- Download URL: systemdlint-1.1.1.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a90b913766df1a0647eac1a07b1bc2c71ca3e3519aa51f85217670fdde295c2
|
|
| MD5 |
5bb16286c558ca149c4de58c52796e12
|
|
| BLAKE2b-256 |
0dcc511a410ea61d44c9a84e3110b8ac6cae50b25a564a631ca506e4f685e5b6
|
File details
Details for the file systemdlint-1.1.1-py3.6.egg.
File metadata
- Download URL: systemdlint-1.1.1-py3.6.egg
- Upload date:
- Size: 66.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad740a189b24f19f224e1b41eb8c5f46929268b416dfaf86183e6f1a20760f8
|
|
| MD5 |
fdc2cbf8bad90b62971d15ebfc3a5f2a
|
|
| BLAKE2b-256 |
1e485cc587c88af2b289399fc27204aa54b96a116bdae88f1436d18fe54e2e3b
|