Allow optionally configuring git-annex with -fEKG to enable awesome remote monitoring interfaceat http://localhost:4242/
This commit is contained in:
parent
77e3f36b92
commit
691850ca39
7 changed files with 48 additions and 2 deletions
11
GitAnnex.hs
11
GitAnnex.hs
|
@ -5,7 +5,7 @@
|
|||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE CPP, OverloadedStrings #-}
|
||||
|
||||
module GitAnnex where
|
||||
|
||||
|
@ -87,6 +87,9 @@ import qualified Command.XMPPGit
|
|||
import qualified Command.Test
|
||||
import qualified Command.FuzzTest
|
||||
#endif
|
||||
#ifdef WITH_EKG
|
||||
import System.Remote.Monitoring
|
||||
#endif
|
||||
|
||||
cmds :: [Command]
|
||||
cmds = concat
|
||||
|
@ -169,4 +172,8 @@ header :: String
|
|||
header = "git-annex command [option ...]"
|
||||
|
||||
run :: [String] -> IO ()
|
||||
run args = dispatch True args cmds options [] header Git.CurrentRepo.get
|
||||
run args = do
|
||||
#ifdef WITH_EKG
|
||||
_ <- forkServer "localhost" 4242
|
||||
#endif
|
||||
dispatch True args cmds options [] header Git.CurrentRepo.get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue