From 66d0257b2e3a0e4bdb02b2511881863059a1e5a5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 11 Jan 2018 18:58:06 -0800 Subject: mpm: Enable systemd watchdog and update it from MPM - Updated systemd service file - Added health status flag in shared data object - Added thread in RPC process to update watchdog Reviewed-by: Moritz Fischer --- mpm/systemd/usrp-hwd.service.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mpm/systemd') diff --git a/mpm/systemd/usrp-hwd.service.in b/mpm/systemd/usrp-hwd.service.in index 91ba942a2..4da4a31dc 100644 --- a/mpm/systemd/usrp-hwd.service.in +++ b/mpm/systemd/usrp-hwd.service.in @@ -3,6 +3,12 @@ Description=USRP Hardware Daemon (MPM) [Service] ExecStart=@CMAKE_INSTALL_PREFIX@/bin/usrp_hwd.py +WatchdogSec=30 +Type=notify +Restart=on-failure +StartLimitInterval=2min +StartLimitBurst=4 +StartLimitAction=none [Install] WantedBy=multi-user.target -- cgit v1.2.3