Config::Model::Backend::Systemd::Unit(3pm)

Config::Model::Backend::Systemd::Unit3pm

R/w backend for systemd unit files

Usage

 # in systemd service or socket model
 rw_config => {
     'auto_create' => '1',
     'auto_delete' => '1',
     'backend' => 'Systemd::Unit',
     'file' => '&index.service'
 }

Version

version 0.257.2

Overview

"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.

Methods

read

This method read config data from systemd default file to get default values and read config data.

write

This method write systemd configuration data.

When the service is disabled, the target configuration file is replaced by a link to "/dev/null".

Limitations

Unit backend cannot read or write arbitrary files in "/etc/systemd/system/unit.type.d/" and " ~/.config/systemd/user/unit.type.d/*.conf".

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Dominique Dumont

From libconfig-model-systemd-perl 0.257.2-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.