This commit is contained in:
Joey Hess 2013-03-12 06:45:56 -04:00
parent ccb7e5cfa4
commit c56e8f07ba

View file

@ -178,7 +178,7 @@ startDaemon assistant foreground startbrowser = do
origerr <- liftIO $ catchMaybeIO $
fdToHandle =<< dup stdError
liftIO $ Utility.LogFile.redirLog logfd
showStart (if assistant then "assistant" else "watch") "."
showStart "." desc
start id $
case startbrowser of
Nothing -> Nothing
@ -186,6 +186,9 @@ startDaemon assistant foreground startbrowser = do
else
start (Utility.Daemon.daemonize logfd (Just pidfile) False) Nothing
where
desc
| assistant = "assistant"
| otherwise = "watch"
start daemonize webappwaiter = withThreadState $ \st -> do
checkCanWatch
when assistant $ checkEnvironment