Apache Mesos
Classes | Namespaces | Functions
systemd.hpp File Reference
#include <process/subprocess.hpp>
#include <stout/flags.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::slices
 

Functions

Try< Nothingsystemd::mesos::extendLifetime (pid_t child)
 A hook that is executed in the parent process. More...
 
const Flags & systemd::flags ()
 
Try< Nothingsystemd::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< Nothingsystemd::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< Nothingsystemd::slices::create (const Path &path, const std::string &data)
 Creates a slice configuration with the provided contents at the given path. More...
 
Try< Nothingsystemd::slices::start (const std::string &name)
 Starts the slice with the given name (via 'systemctl start <name>'). More...