From 2443d5efebe93396d4b669da750eed6f74dd5b7c Mon Sep 17 00:00:00 2001 From: khromenokroman Date: Thu, 5 Sep 2024 10:27:52 +0200 Subject: [PATCH] iox-#2330 Edit ci --- tools/ci/build-test-ubuntu-support-systemd-integrations.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ci/build-test-ubuntu-support-systemd-integrations.sh b/tools/ci/build-test-ubuntu-support-systemd-integrations.sh index 37c1a462cd..ffb0847e45 100755 --- a/tools/ci/build-test-ubuntu-support-systemd-integrations.sh +++ b/tools/ci/build-test-ubuntu-support-systemd-integrations.sh @@ -28,8 +28,11 @@ msg() { printf "\033[1;32m%s: %s\033[0m\n" ${FUNCNAME[1]} "$1" } +WORKSPACE=$(git rev-parse --show-toplevel) +DIR_BUILD="build" + msg "Create unit file" -echo -e "[Unit]\nDescription=Test application roudi\n\n[Service]\nType=notify\nRestartSec=10\nRestart=always\nExecStart=/usr/bin/iox-roudi\nTimeoutStartSec=10\nWatchdogSec=5\n\n[Install]\nWantedBy=multi-user.target" | tee /usr/lib/systemd/system/test_iox.service > /dev/null +echo -e "[Unit]\nDescription=Test application roudi\n\n[Service]\nType=notify\nRestartSec=10\nRestart=always\nExecStart=${WORKSPACE}/${DIR_BUILD}/iox-roudi\nTimeoutStartSec=10\nWatchdogSec=5\n\n[Install]\nWantedBy=multi-user.target" | tee /usr/lib/systemd/system/test_iox.service > /dev/null msg "Show unit" cat /usr/lib/systemd/system/test_iox.service