diff options
-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 |