From fae819296598100e41646e0bebc7d0bce45614f7 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 10 Jun 2020 11:22:29 +0200 Subject: Add initial systemd integration --- systemd.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 systemd.h (limited to 'systemd.h') diff --git a/systemd.h b/systemd.h new file mode 100644 index 0000000..ccf63dd --- /dev/null +++ b/systemd.h @@ -0,0 +1,22 @@ +#ifndef foosystemdhfoo +#define foosystemdhfoo + +char *systemd_service_object_path(struct cfg *cfg, const char *service); + +void systemd_delete(struct cfg *cfg); + +bool systemd_service_running(struct cfg *cfg, struct server *server); + +bool systemd_service_stop(struct cfg *cfg, struct server *server); + +bool systemd_service_start(struct cfg *cfg, struct server *server); + +/* +void idle_refdump(struct idle *idle); + +void idle_delete(struct cfg *cfg, struct server *server); + +void idle_init(struct cfg *cfg, struct server *server); +*/ + +#endif -- cgit v1.2.3