From 6b1d27901eaea2331c5416b3ea8338ac74ec8f5e Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 9 Dec 2024 09:52:27 +0100 Subject: [PATCH] fix(packaging): start tedge-inventory.timer on installation --- src/packaging/postinstall | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/packaging/postinstall b/src/packaging/postinstall index 434e5b9..c982952 100644 --- a/src/packaging/postinstall +++ b/src/packaging/postinstall @@ -44,6 +44,11 @@ cleanInstall() { systemctl preset tedge-inventory.timer ||: printf "\033[32m Set the enabled flag for the service unit\033[0m\n" systemctl enable tedge-inventory.timer ||: + + if [ -d /run/systemd/system ]; then + printf "\033[32m Start the service timer\033[0m\n" + systemctl start tedge-inventory.timer ||: + fi fi }