Skip to content

Commit d65606f

Browse files
committed
wip debugging
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
1 parent c2b3233 commit d65606f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

functions/grott-install.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ teardown_file() {
2626

2727
## Check grott service is running
2828
echo -e "# ${COL_CYAN}$(timestamp) [openHABian] Checking if Grott Proxy service is running...${COL_DEF}" >&3
29+
run systemctl status grott
30+
echo "Grott service status: $status"
31+
echo "Grott service status: $output"
32+
2933
run systemctl is-active --quiet grott
34+
run systemctl is-active grott
35+
echo "Grott service is-active returned: $status"
36+
[ "$status" -eq 0 ] || { echo "Grott Proxy service failed to start"; systemctl status grott; exit 1; }
37+
3038
if [ "$status" -ne 0 ]; then echo "$output" >&3; fi
3139
[ "$status" -eq 0 ]
3240
echo -e "# ${COL_GREEN}$(timestamp) [openHABian] Grott Proxy service is running.${COL_DEF}" >&3

0 commit comments

Comments
 (0)