| Jagpal Singh Gill | 15dde86 | 2024-10-16 09:42:54 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| 3 | #include <sdbusplus/async.hpp> | ||||
| 4 | |||||
| 5 | #include <string> | ||||
| 6 | |||||
| 7 | namespace systemd | ||||
| 8 | { | ||||
| 9 | |||||
| 10 | class 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 | ||||