Config::Model::Backend::Systemd::Unit - R/W backend for systemd unit files
version 0.234.2
# in systemd service or socket model rw_config => { 'auto_create' => '1', 'auto_delete' => '1', 'backend' => 'Systemd::Unit', 'file' => '&index.service' }
Config::Model::Backend::Systemd::Unit provides a plugin class to enable Config::Model to read and write systemd configuration files. This class inherits Config::Model::Backend::IniFile is designed to be used by Config::Model::BackendMgr.
Config::Model::Backend::Systemd::Unit
This method read config data from systemd default file to get default values and read config data.
This method write systemd configuration data.
When the service is disabled, the target configuration file is replaced by a link to /dev/null.
/dev/null
Dominique Dumont
This software is Copyright (c) 2015-2017 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
To install Config::Model::Systemd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model::Systemd
CPAN shell
perl -MCPAN -e shell install Config::Model::Systemd
For more information on module installation, please visit the detailed CPAN module installation guide.