summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Watch.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Watch.hs b/Command/Watch.hs
index 480bd3ede..8b8e5578d 100644
--- a/Command/Watch.hs
+++ b/Command/Watch.hs
@@ -67,7 +67,8 @@ start foreground = notBareRepo $ withStateMVar $ \st -> do
liftIO $ watch st
else do
logfd <- liftIO . openLog =<< fromRepo gitAnnexLogFile
- liftIO $ daemonize logfd False $ watch st
+ pidfile <- fromRepo gitAnnexPidFile
+ liftIO $ daemonize logfd (Just pidfile) False $ watch st
stop
watch :: MVar Annex.AnnexState -> IO ()