From f6ac681da0abef920d745ac4729c953ff64a4bb5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 23 Sep 2014 13:19:26 -0400 Subject: use Daemon.restarted consistently, and implement using Service.restarted --- src/Propellor/Property/Tor.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Propellor/Property/Tor.hs') diff --git a/src/Propellor/Property/Tor.hs b/src/Propellor/Property/Tor.hs index 78e35c89..409bb63e 100644 --- a/src/Propellor/Property/Tor.hs +++ b/src/Propellor/Property/Tor.hs @@ -3,6 +3,7 @@ module Propellor.Property.Tor where import Propellor import qualified Propellor.Property.File as File import qualified Propellor.Property.Apt as Apt +import qualified Propellor.Property.Service as Service isBridge :: Property isBridge = setup `requires` Apt.installed ["tor"] @@ -13,7 +14,7 @@ isBridge = setup `requires` Apt.installed ["tor"] , "ORPort 443" , "BridgeRelay 1" , "Exitpolicy reject *:*" - ] `onChange` restartTor + ] `onChange` restarted -restartTor :: Property -restartTor = cmdProperty "service" ["tor", "restart"] +restarted :: Property +restarted = Service.restarted "tor" -- cgit v1.2.3