add sanity checker thread

Currently wakes up once a day, and does nothing. :)
This commit is contained in:
Joey Hess 2012-06-13 17:54:23 -04:00
parent 36d73b0017
commit 4b9b9b4947
4 changed files with 80 additions and 12 deletions

View file

@ -45,6 +45,7 @@ import Assistant.ThreadedMonad
import Assistant.DaemonStatus
import Assistant.Watcher
import Assistant.Committer
import Assistant.SanityChecker
import qualified Utility.Daemon
import Utility.LogFile
@ -71,6 +72,7 @@ startDaemon foreground
-- is taking place.
_ <- forkIO $ commitThread st changechan
_ <- forkIO $ daemonStatusThread st dstatus
_ <- forkIO $ sanityCheckerThread st dstatus
watchThread st dstatus changechan
stopDaemon :: Annex ()