logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Config::Model::Backend::Systemd::Unit - R/W backend for systemd unit files

Author

       Dominique Dumont

Description

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

Limitations

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

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

Name

       Config::Model::Backend::Systemd::Unit - R/W backend for systemd unit files

Synopsis

        # 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

See Also