The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::Model::Systemd - Edit and validate Systemd configuration files

VERSION

version 0.002

SYNOPSIS

 $ cme edit systemd-user
 $ cme check systemd-user

 # cme edit systemd
 # cme check systemd

DESCRIPTION

This module provides a configuration editor for the configuration file of Systemd, i.e. all files in ~/.config/systemd/user/ or all files in /etc/systemd/system/

Ok. I simplified. Actually, this module provides the configuration models of Systemd configuration file that cme, Config::Model and Config::Model::TkUI use to provide a configuration editor and checker.

invoke editor

The following command loads user systemd files (from ~/.config/systemd/user/ and launch a graphical editor:

 cme edit systemd-user

Likewise, the following command loads system systemd configuration files and launch a graphical editor:

 sudo cme edit systemd

Just check systemd configuration

You can also use cme to run sanity checks on the configuration file:

 cme check systemd-user
 cme check systemd

Fix warnings

When run, cme may issue several warnings regarding the content of your file. You can choose to fix (most of) these warnings with the command:

 cme fix systemd-user

BUGS

The list of supported parameters is extracted from the xml documentation provided by systemd project. This list is expected to be rather complete.

The properties of these parameters are inferred from the description of the parameters and are probably less accurate. In case of errors, please log a bug.

TODO

For now, only unit, socket and service files are supported. Please log a wishlist bug if you need other unit types to be supported.

SUPPORT

In case of issue, please log a bug on https://github.com/dod38fr/config-model-systemd/issues.

SEE ALSO

AUTHOR

Dominique Dumont

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015-2016 by Dominique Dumont.

This is free software, licensed under:

  The GNU Lesser General Public License, Version 2.1, February 1999

SUPPORT

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Bugs / Feature Requests

Please report any bugs or feature requests by email to ddumont at cpan.org, or through the web interface at https://github.com/dod38fr/config-model-systemd/issues. You will be automatically notified of any progress on the request by the system.

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

http://github.com/dod38fr/config-model-systemd

  git clone git://github.com/dod38fr/config-model-systemd.git

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 72:

Unknown directive: =comment

Around line 81:

=end comment without matching =begin. (Stack: [empty])