Apache Mesos
|
#include <process/subprocess.hpp>
#include <stout/flags.hpp>
#include <stout/hashset.hpp>
#include <stout/nothing.hpp>
#include <stout/path.hpp>
#include <stout/try.hpp>
Go to the source code of this file.
Classes | |
class | systemd::Flags |
Flags to initialize systemd state. More... | |
Namespaces | |
systemd | |
systemd::mesos | |
systemd::socket_activation | |
systemd::slices | |
Functions | |
Try< Nothing > | systemd::mesos::extendLifetime (pid_t child) |
A hook that is executed in the parent process. More... | |
Try< std::vector< int > > | systemd::socket_activation::listenFds () |
Try< std::vector< int > > | systemd::socket_activation::listenFdsWithNames (const hashset< std::string > &names) |
void | systemd::socket_activation::clearEnvironment () |
const Flags & | systemd::flags () |
Try< Nothing > | systemd::initialize (const Flags &flags) |
Initialized state for support of systemd functions in this file. More... | |
bool | systemd::exists () |
Check if we are on a systemd environment by: (1) Testing whether /sbin/init links to systemd. More... | |
bool | systemd::enabled () |
Check if systemd exists, and whether we have initialized it. More... | |
Path | systemd::runtimeDirectory () |
Returns the path to the runtime directory for systemd units. More... | |
Path | systemd::hierarchy () |
Return the path to the systemd hierarchy. More... | |
Try< Nothing > | systemd::daemonReload () |
Runs systemctl daemon-reload. More... | |
bool | systemd::slices::exists (const Path &path) |
Returns whether a systemd slice configuration file exists at the given path. More... | |
Try< Nothing > | systemd::slices::create (const Path &path, const std::string &data) |
Creates a slice configuration with the provided contents at the given path. More... | |
Try< Nothing > | systemd::slices::start (const std::string &name) |
Starts the slice with the given name (via 'systemctl start <name>'). More... | |
Variables | |
constexpr int | systemd::socket_activation::SD_LISTEN_FDS_START = 3 |