diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-11 18:58:06 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-15 10:45:07 -0800 |
commit | 66d0257b2e3a0e4bdb02b2511881863059a1e5a5 (patch) | |
tree | 2ca254bbefaff30f68ac63a4397f3ea814d42f7d /mpm/systemd/usrp-hwd.service.in | |
parent | 032e483adcd0084d5479ac36c6586f7518805de3 (diff) | |
download | uhd-66d0257b2e3a0e4bdb02b2511881863059a1e5a5.tar.gz uhd-66d0257b2e3a0e4bdb02b2511881863059a1e5a5.tar.bz2 uhd-66d0257b2e3a0e4bdb02b2511881863059a1e5a5.zip |
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 <moritz.fischer@ettus.com>
Diffstat (limited to 'mpm/systemd/usrp-hwd.service.in')
-rw-r--r-- | mpm/systemd/usrp-hwd.service.in | 6 |
1 files changed, 6 insertions, 0 deletions
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 |