diff options
author | initard <alex.solomes@softwareag.com> | 2021-12-09 17:36:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 18:36:10 +0100 |
commit | 846c1dc977a36511d1f42a2833b06a05e5de2895 (patch) | |
tree | a2642972da0a420b435f13b2e2663bf494ebde3c /crates/core/tedge_agent/src | |
parent | 07faba9a8acfedc57d38aca4cd0399d5220a0f64 (diff) |
creating runtime directory /run/tedge_agent (#683) (#698)
* creating runtime directory /run/tedge_agent (#683)
Signed-off-by: initard <solo@softwareag.com>
* ignoring test due to permission error (#683)
Signed-off-by: initard <solo@softwareag.com>
Co-authored-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/core/tedge_agent/src')
-rw-r--r-- | crates/core/tedge_agent/src/agent.rs | 2 | ||||
-rw-r--r-- | crates/core/tedge_agent/src/restart_operation_handler.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_agent/src/agent.rs b/crates/core/tedge_agent/src/agent.rs index 1402d8f3..3764523a 100644 --- a/crates/core/tedge_agent/src/agent.rs +++ b/crates/core/tedge_agent/src/agent.rs @@ -539,7 +539,7 @@ async fn publish_capabilities(mqtt: &Client) -> Result<(), AgentError> { #[cfg(test)] mod tests { use super::*; - const SLASH_RUN_PATH_TEDGE_AGENT_RESTART: &str = "/run/tedge_agent_restart"; + const SLASH_RUN_PATH_TEDGE_AGENT_RESTART: &str = "/run/tedge_agent/tedge_agent_restart"; #[ignore] #[tokio::test] diff --git a/crates/core/tedge_agent/src/restart_operation_handler.rs b/crates/core/tedge_agent/src/restart_operation_handler.rs index 1f9d85f6..8825d60e 100644 --- a/crates/core/tedge_agent/src/restart_operation_handler.rs +++ b/crates/core/tedge_agent/src/restart_operation_handler.rs @@ -4,7 +4,7 @@ pub mod restart_operation { use std::{fs::File, fs::OpenOptions, io::Read, io::Write, path::Path}; use time::OffsetDateTime; - const SLASH_RUN_PATH_TEDGE_AGENT_RESTART: &str = "/run/tedge_agent_restart"; + const SLASH_RUN_PATH_TEDGE_AGENT_RESTART: &str = "/run/tedge_agent/tedge_agent_restart"; const SLASH_PROC_UPTIME: &str = "/proc/uptime"; /// creates an empty file in /run |