blob: 027d4cbbfface8b4744f3cb3aef05a4f40a6fc1d [file] [log] [blame]
Jagpal Singh Gill15dde862024-10-16 09:42:54 -07001#pragma once
2
3#include <sdbusplus/async.hpp>
4
5#include <string>
6
7namespace systemd
8{
9
10class SystemdInterface
11{
12 public:
13 /** @brief Start a systemd unit.
14 * Returns true on success, otherwise false.
15 */
16 static auto startUnit(sdbusplus::async::context& ctx, std::string sysdUnit)
17 -> sdbusplus::async::task<>;
18};
19
20} // namespace systemd