RADLib
RADical C++ application framework
RADService::ServiceUnit Struct Reference

Systemd service unit description. More...

#include <RADService.h>

Public Attributes

std::string name
 Unit name without .service. More...
 
std::string description
 Description text. More...
 
std::string execStart
 Executable command. More...
 
std::string workingDirectory
 Optional working directory. More...
 
std::map< std::string, std::string > environment
 Environment key/value pairs. More...
 
RestartPolicy restart = RestartPolicy::OnFailure
 Restart policy. More...
 
int watchdogSec = 0
 Watchdog timeout seconds; 0 disables WatchdogSec. More...
 
std::string user
 User name for service execution. More...
 
std::string wantedBy = "multi-user.target"
 WantedBy target. More...
 

Detailed Description

Systemd service unit description.

Member Data Documentation

◆ description

std::string RADService::ServiceUnit::description

Description text.

◆ environment

std::map<std::string, std::string> RADService::ServiceUnit::environment

Environment key/value pairs.

◆ execStart

std::string RADService::ServiceUnit::execStart

Executable command.

◆ name

std::string RADService::ServiceUnit::name

Unit name without .service.

◆ restart

RestartPolicy RADService::ServiceUnit::restart = RestartPolicy::OnFailure

Restart policy.

◆ user

std::string RADService::ServiceUnit::user

User name for service execution.

◆ wantedBy

std::string RADService::ServiceUnit::wantedBy = "multi-user.target"

WantedBy target.

◆ watchdogSec

int RADService::ServiceUnit::watchdogSec = 0

Watchdog timeout seconds; 0 disables WatchdogSec.

◆ workingDirectory

std::string RADService::ServiceUnit::workingDirectory

Optional working directory.


The documentation for this struct was generated from the following file: