2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
47#include "core/system/unistd.h"
64 explicit DaemonError(
const std::string& errorMessage);
86 static void startDaemon(
const std::string& pidFileName,
const std::string& userName,
const std::string& groupName);
87 static pid_t
stopDaemon(
const std::string& pidFileName);
89 static void erasePidFile(
const std::string& pidFileName);
CLI::App * getApp() const
CallForCommandline(CLI::App *app, const std::string &description, Mode mode)
CLI::App * getApp() const
CallForShowConfig(CLI::App *app)
std::string getConfigFile() const
CallForWriteConfig(const std::string &configFile)
DaemonError(const std::string &errorMessage)
~DaemonFailure() override
DaemonFailure(const std::string &failureMessage)
~DaemonSignaled() override
DaemonSignaled(const std::string &message, pid_t pid)
static void startDaemon(const std::string &pidFileName, const std::string &userName, const std::string &groupName)
static pid_t stopDaemon(const std::string &pidFileName)
static void erasePidFile(const std::string &pidFileName)
static const std::shared_ptr< CLI::App > makeApp()
static std::string createCommandLineTemplate(CLI::App *app, CLI::CallForCommandline::Mode mode)
static const std::shared_ptr< CLI::HelpFormatter > makeSectionFormatter()
static void createCommandLineTemplate(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
static void createCommandLineOptions(std::stringstream &out, CLI::App *app, CLI::CallForCommandline::Mode mode)
static std::string createCommandLineOptions(CLI::App *app, CLI::CallForCommandline::Mode mode)
static std::string createCommandLineSubcommands(CLI::App *app, CLI::CallForCommandline::Mode mode)