MCPcopy Create free account
hub / github.com/apache/mesos / start

Function start

src/linux/systemd.cpp:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320
321Try<Nothing> start(const string& name)
322{
323 Try<string> start = os::shell("systemctl start " + name);
324
325 if (start.isError()) {
326 return Error(
327 "Failed to start systemd slice `" + name + "`: " + start.error());
328 }
329
330 LOG(INFO) << "Started systemd slice `" << name << "`";
331
332 return Nothing();
333}
334
335} // namespace slices {
336

Callers 12

runMethod · 0.85
_startMethod · 0.85
getMethod · 0.85
_setMethod · 0.85
_expungeMethod · 0.85
namesMethod · 0.85
initializeMethod · 0.85
finishedMethod · 0.85
initializeMethod · 0.85
runMethod · 0.85
StartMasterMethod · 0.85
initializeFunction · 0.85

Calls 5

NothingClass · 0.85
errorMethod · 0.65
shellFunction · 0.50
ErrorFunction · 0.50
isErrorMethod · 0.45

Tested by 1

StartMasterMethod · 0.68