Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
systemd.h File Reference
#include <filesystem>
#include <fstream>
#include <map>
#include <optional>
#include <regex>
#include <sstream>
#include <string>
#include <vector>
#include "goby/middleware/tool/interface/launch.h"

Go to the source code of this file.

Classes

struct  goby::middleware::tool::interface::SystemdUnitFile
 

Namespaces

namespace  goby
 The global namespace for the Goby project.
 
namespace  goby::middleware
 Objects implementing the Goby nested middleware.
 
namespace  goby::middleware::tool
 
namespace  goby::middleware::tool::interface
 
namespace  goby::middleware::tool::interface::detail
 

Functions

std::string goby::middleware::tool::interface::detail::unit_name (const std::string &name)
 
std::optional< bool > goby::middleware::tool::interface::detail::evaluate_when (const std::string &when)
 A when: condition decided now, from the values -D and the environment gave the deployment; nullopt when it cannot be (a value left for the shell, or a command)
 
SystemdSettings goby::middleware::tool::interface::detail::merged (const SystemdSettings &defaults, const SystemdSettings &own)
 
std::string goby::middleware::tool::interface::detail::exec_start (const std::string &command)
 
std::string goby::middleware::tool::interface::detail::substitute (std::string text, const std::map< std::string, std::string > &vars)
 
std::string goby::middleware::tool::interface::systemd_target (const Deployment &deployment, const LaunchUnit &unit)
 The target (generated, or the platform's systemd: target:) that a unit's services belong to.
 
std::vector< SystemdUnitFile > goby::middleware::tool::interface::render_systemd (const Deployment &deployment, const LaunchUnit &unit, Issues &issues)
 The systemd units that start a launch unit: one service per enabled entry and, unless the platform names its own, a target that brings them all up.