summaryrefslogtreecommitdiffstats
path: root/configuration
diff options
context:
space:
mode:
authorPradeepKiruvale <PRADEEPKIRUVALE@gmail.com>2022-02-04 19:57:56 +0530
committerGitHub <noreply@github.com>2022-02-04 19:57:56 +0530
commit43bf45a3bd868586afe83a645be67f5042d9ac5d (patch)
tree41d607b64c65750e8e7f7e65fd308f9617b351a2 /configuration
parent89f554fbb724cb4b9fe09336d58558cfa76638a1 (diff)
[699] init/clear agent and mapper sessions (#797)
* add init to tedge_agent * init mapper * init mapper and agent postinst * separate init and clear session functions * use tokio::mutex instead of std::mutex * pysys test for agent init * system test for mapper init session * use mqtt_channel init/clear session apis Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
Diffstat (limited to 'configuration')
-rw-r--r--configuration/debian/tedge_agent/postinst2
-rw-r--r--configuration/debian/tedge_mapper/postinst3
2 files changed, 5 insertions, 0 deletions
diff --git a/configuration/debian/tedge_agent/postinst b/configuration/debian/tedge_agent/postinst
index 4359aaec..04a42239 100644
--- a/configuration/debian/tedge_agent/postinst
+++ b/configuration/debian/tedge_agent/postinst
@@ -42,4 +42,6 @@ if command -v systemctl >/dev/null; then
fi
fi
+# Initialize the agent
+tedge_agent --init
#DEBHELPER#
diff --git a/configuration/debian/tedge_mapper/postinst b/configuration/debian/tedge_mapper/postinst
index c1fc4912..643afb73 100644
--- a/configuration/debian/tedge_mapper/postinst
+++ b/configuration/debian/tedge_mapper/postinst
@@ -24,4 +24,7 @@ install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_Softwar
install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_Restart
install -g tedge -o tedge -m 644 /dev/null /etc/tedge/operations/c8y/c8y_LogfileRequest
+### Initialize the sm mapper
+tedge_mapper --init sm-c8y
+
#DEBHELPER#