Apache Mesos
Functions
systemd::slices Namespace Reference

Functions

bool exists (const Path &path)
 Returns whether a systemd slice configuration file exists at the given path. More...
 
Try< Nothingcreate (const Path &path, const std::string &data)
 Creates a slice configuration with the provided contents at the given path. More...
 
Try< Nothingstart (const std::string &name)
 Starts the slice with the given name (via 'systemctl start <name>'). More...
 

Function Documentation

Try<Nothing> systemd::slices::create ( const Path path,
const std::string &  data 
)

Creates a slice configuration with the provided contents at the given path.

Parameters
pathThe path at which to create the slice configurations file.
dataThe contents of the configuration file.
Returns
Nothing if successful, otherwise Error.
bool systemd::slices::exists ( const Path path)

Returns whether a systemd slice configuration file exists at the given path.

Try<Nothing> systemd::slices::start ( const std::string &  name)

Starts the slice with the given name (via 'systemctl start <name>').