diff options
author | Rina Fujino <18257209+rina23q@users.noreply.github.com> | 2022-01-10 17:57:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:57:41 +0100 |
commit | 3ab4cf779ebacafd5990285d07ccfe03bebaea03 (patch) | |
tree | ae8f06bc774a39f2575abf933cb92a04fc710a79 /crates/core/tedge/src/error.rs | |
parent | 9c4dee566f25a7a3a2b2548a03d0c4a4bf65b66e (diff) |
#639 Remove the dependency on systemd (#729)
* The purpose of this change is to get rid of the hard-coded dependencies on systemd from tedge connect/disconnect, to allow users to use other system managers, e.g. OpenRC, initd, etc..
* If /etc/tedge/system.toml exists, tedge connect/disconnect uses the service manager defined in the file.
* If the file is not given by user, tedge connect/disconnect uses /bin/systemctl as the service manager. (the same behaviour as we have it so far)
* Delete old service implementation files for BSD, OpenRC, systemd, and NULL.
* Add system.toml example files for BSD and OpenRC.
* Add a reference guide to explain the format of system.toml configuration file.
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
Diffstat (limited to 'crates/core/tedge/src/error.rs')
-rw-r--r-- | crates/core/tedge/src/error.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/core/tedge/src/error.rs b/crates/core/tedge/src/error.rs index 3e4bb431..46aa68d3 100644 --- a/crates/core/tedge/src/error.rs +++ b/crates/core/tedge/src/error.rs @@ -1,3 +1,5 @@ +use crate::system_services; + #[derive(thiserror::Error, Debug)] pub enum TEdgeError { #[error("TOML parse error")] @@ -20,4 +22,7 @@ pub enum TEdgeError { #[error(transparent)] FromRumqttClient(#[from] rumqttc::ClientError), + + #[error(transparent)] + FromSystemServiceError(#[from] system_services::SystemServiceError), } |