diff options
author | PMR <pmr@pmr-lander> | 2020-12-14 11:00:43 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2020-12-14 11:00:43 +0000 |
commit | c61157d1c54668578b78c29d808abf49fb83c167 (patch) | |
tree | 21d7f47c4b6b9b72e7c887100e565ee9c165b8a0 /units | |
parent | cdee3d99fb4e574eeec42f9f8d820c23e65d9d2b (diff) | |
parent | a7ba4619ab9545bbf48a77ce5aa4a55b48078492 (diff) |
Merge #394879 from ~jocave/plainbox-provider-checkbox:watchdog-manifest
Diffstat (limited to 'units')
-rw-r--r-- | units/watchdog/jobs.pxu | 4 | ||||
-rw-r--r-- | units/watchdog/manifest.pxu | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/units/watchdog/jobs.pxu b/units/watchdog/jobs.pxu index 3247941..f02460f 100644 --- a/units/watchdog/jobs.pxu +++ b/units/watchdog/jobs.pxu @@ -29,6 +29,8 @@ command: {% endif -%} category_id: com.canonical.plainbox::power-management flags: simple +imports: from com.canonical.plainbox import manifest +requires: manifest.has_hardware_watchdog == 'True' id: watchdog/trigger-system-reset depends: watchdog/systemd-config @@ -75,3 +77,5 @@ unit: job plugin: shell command: failed_service_check.sh estimated_duration: 1.0 +imports: from com.canonical.plainbox import manifest +requires: manifest.has_hardware_watchdog == 'True' diff --git a/units/watchdog/manifest.pxu b/units/watchdog/manifest.pxu new file mode 100644 index 0000000..d80d7e1 --- /dev/null +++ b/units/watchdog/manifest.pxu @@ -0,0 +1,5 @@ + +unit: manifest entry +id: has_hardware_watchdog +_name: Hardware Watchdog +value-type: bool |