summaryrefslogtreecommitdiff
path: root/config-joey.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-13 12:10:43 -0400
committerJoey Hess2014-04-13 12:10:43 -0400
commitebfba3828cadb0c53712410e0935dba4a58c1f6b (patch)
tree329c7e2bd2661f1bdd3352ea33a50376ab9ea9a8 /config-joey.hs
parent52a6909b9337a9714ff815f4706b511c165e7380 (diff)
propellor spin
Diffstat (limited to 'config-joey.hs')
-rw-r--r--config-joey.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/config-joey.hs b/config-joey.hs
index 0371ce71..7537b10a 100644
--- a/config-joey.hs
+++ b/config-joey.hs
@@ -5,6 +5,7 @@ import Propellor.CmdLine
import Propellor.Property.Scheduled
import qualified Propellor.Property.File as File
import qualified Propellor.Property.Apt as Apt
+import qualified Propellor.Property.Service as Service
import qualified Propellor.Property.Network as Network
import qualified Propellor.Property.Ssh as Ssh
import qualified Propellor.Property.Cron as Cron
@@ -94,6 +95,8 @@ hosts =
& Apt.serviceInstalledRunning "kgb-bot"
& File.hasPrivContent "/etc/kgb-bot/kgb.conf"
& File.hasPrivContent "/etc/kgb-bot/kgb-client.conf"
+ & "/etc/default/kgb-bot" `File.containsLine` "BOT_ENABLED=1"
+ `onChange` Service.running "kgb-bot"
& cname "downloads.kitenet.net"
& Apt.buildDep ["git-annex"] `period` Daily