1#pragma once
2
3#include "unit.hpp"
4
5struct Service : public Unit
6{
7 using Unit::Unit;
8 std::vector<std::string> exec;
9
10 private:
11 bool do_start() override;
12 bool do_stop() override;
13 bool do_load(const toml::table &data) override;
14 void do_print(std::ostream &os) const override;
15
16 private:
17 pid_t pid = -1;
18 int status = -1;
19};
20