We generally want to have error messages with a fixed structure that convey the important information, i.e. field name, error value, and the offending text for options that take short values. (The text is not printed for strings encoded with base64 and hexmem or for credentials.) Let's use a helper that prints the message in a fixed format in the majority of cases. In the few places where a custom message is useful, the helper is not used. The helper: - prints the field name, value, and error info, - quotes the value, - handles -ENOMEM, so we don't need to handle it separately everywhere. When this code was originally written, parse functions would return -1 as error. Nowadays day all return a good errno, so it is fine if we print the corresponding strerror.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS
