summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2019-06-30 19:23:49 -0400
committerJoey Hess2019-06-30 19:23:49 -0400
commitd36e553edc5d456362c49c7eb865f618d41308ce (patch)
tree3a5eed2198c3ddfff2606ba99b1fa0172032f7ab /src/Propellor
parent38c27aa25409b02a1957d3dd7b489cd511cc0a92 (diff)
moar watchdog
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/SiteSpecific/JoeySites.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs
index faf242e0..fcbe8639 100644
--- a/src/Propellor/Property/SiteSpecific/JoeySites.hs
+++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs
@@ -910,15 +910,16 @@ house user hosts ctx sshkey = propertyList "home automation" $ props
& Systemd.enabled setupservicename
`requires` setupserviceinstalled
`onChange` Systemd.started setupservicename
- & Systemd.enabled watchdogservicename
- `requires` watchdogserviceinstalled
- `onChange` Systemd.started watchdogservicename
& Systemd.enabled pollerservicename
`requires` pollerserviceinstalled
`onChange` Systemd.started pollerservicename
& Systemd.enabled controllerservicename
`requires` controllerserviceinstalled
`onChange` Systemd.started controllerservicename
+ & Systemd.enabled watchdogservicename
+ `requires` watchdogserviceinstalled
+ `onChange` Systemd.started watchdogservicename
+ & Apt.serviceInstalledRunning ["watchdog"]
& User.hasGroup user (Group "dialout")
& Group.exists (Group "gpio") Nothing
& User.hasGroup user (Group "gpio")