From e900f63b71205e06f5cd951377398907ecf3592a Mon Sep 17 00:00:00 2001 From: kx1t Date: Mon, 23 Oct 2023 16:28:06 -0400 Subject: [PATCH] use s6svc instead of pkill to restart radar1090 service when needed --- rootfs/etc/s6-overlay/scripts/watchdog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/watchdog b/rootfs/etc/s6-overlay/scripts/watchdog index 6534807..0dc272a 100755 --- a/rootfs/etc/s6-overlay/scripts/watchdog +++ b/rootfs/etc/s6-overlay/scripts/watchdog @@ -66,8 +66,8 @@ monitor_feeder () { fi } -fix_feeder () { # bring down the feeder Python app: - pkill -SIGTERM -f "/usr/sbin/radar" +fix_feeder () { # bring down the feeder apps: + s6-svc -r /run/service/radar1090 sleep 10 # check if data is flowing again: