propellor spin

This commit is contained in:
Joey Hess 2014-05-09 10:31:30 -03:00
parent 839ba9dc63
commit 26254bf8c7
Failed to extract signature
2 changed files with 13 additions and 2 deletions

View File

@ -300,3 +300,15 @@ twitRss = combineProperties "twitter rss"
crontime = "15 * * * *"
feed url desc = Cron.job desc crontime "joey" dir $
"./twitRss " ++ shellEscape url ++ " > " ++ shellEscape ("../" ++ desc ++ ".rss")
ircBouncer :: Property
ircBouncer = propertyList "IRC bouncer"
[ Apt.installed ["znc"]
, User.accountFor "znc"
, File.hasPrivContent conf
, File.ownerGroup conf "znc" "znc"
, Cron.job "znconboot" "@reboot" "znc" "~" "znc"
, Cron.job "zncrunning" "@hourly" "znc" "~" "znc || true"
]
where
conf = "/home/znc/.znc/configs/znc.conf"

View File

@ -74,8 +74,7 @@ hosts = -- (o) `
& myDnsSecondary
& alias "znc.kitenet.net"
& Apt.installed ["znc"]
& User.accountFor "znc"
& JoeySites.ircBouncer
-- Nothing is using https on clam, so listen on that port
-- for ssh, for traveling on bad networks.