From 33ace1c0cc88cf54bced5e04a229c690a3ffe08b Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Tue, 13 Jul 2021 10:05:47 +0200 Subject: Add system service manager abstraction (#338) * Refactor code to use abstract `SystemServiceManager`. * Implement Debug for UserManager This simplifies code that embeds a `UserManager` and has to implement `Debug` on it's own as `Debug` cannot be automatically derived. * Add `SystemdServiceManager` * Add NullSystemServiceManager that always fail This can be used as fallback manager where commands that don't need a SystemServiceManager would still work. * Bring in support for OpenRC / BSD service(8) * Add feature flag "openrc" to override the default system service manager that is selected based on the target operation system. For instance, Gentoo has target_os = "linux", but uses OpenRC. OpenRC can also be used on other systems. * Code roughly based on PR #196. --- tedge/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'tedge/Cargo.toml') diff --git a/tedge/Cargo.toml b/tedge/Cargo.toml index 412c14f4..2326275a 100644 --- a/tedge/Cargo.toml +++ b/tedge/Cargo.toml @@ -46,3 +46,4 @@ integration-test = [] mosquitto-available = [] # Enable tests requesting mosquitto installed root-access = [] # Enable tests requesting root access tedge-user = [] # Enable tests requesting a tedge user +openrc = [] # Enable usage of OpenRC -- cgit v1.2.3