summaryrefslogtreecommitdiff
path: root/Utility/Daemon.hs
Commit message (Collapse)AuthorAge
* assistant: Logs are rotated to avoid them using too much disk space.Gravatar Joey Hess2013-03-01
| | | | | | This cannot completely guard against a runaway log event, and only runs every hour anyway, but it should avoid most problems with very long-running, active assistants using up too much space.
* webapp: Now always logs to .git/annex/daemon.logGravatar Joey Hess2013-01-15
| | | | | | | | It used to not log to daemon.log when a repository was first created, and when starting the webapp. Now both do. Redirecting stdout and stderr to the log is tricky when starting the webapp, because the web browser may want to communicate with the user. (Either a console web browser, or web.browser = echo) This is handled by restoring the original fds when running the browser.
* finished where indentation changesGravatar Joey Hess2012-12-13
|
* fix "daemon is already running" message displayGravatar Joey Hess2012-11-29
| | | | | Display it before daemon forks, so it's not shown after the shell prompt returns.
* make pid file directoryGravatar Joey Hess2012-08-08
|
* write pid file even when running in foregroundGravatar Joey Hess2012-08-01
| | | | | | | | This prevents multiple runs of the assistant in the foreground, and lets --stop stop foregrounded runs too. The webapp firstrun case also now writes a pid file, once it's made the git repo to put it in.
* git annex webapp --force forces a restart of the daemonGravatar Joey Hess2012-07-26
| | | | Useful for testing..
* git annex webapp now opens a browser to the webappGravatar Joey Hess2012-07-25
| | | | Also, starts the assistant if it wasn't already running.
* better pid file locking codeGravatar Joey Hess2012-07-02
|
* fix pid file writingGravatar Joey Hess2012-06-15
| | | | need to truncate, or part of previous longer pid may be left after writing
* bugfixGravatar Joey Hess2012-06-11
|
* git annex watch --stopGravatar Joey Hess2012-06-11
|
* fix pid file lockingGravatar Joey Hess2012-06-11
| | | | | Ok, that's odd.. opening it before fork breaks the locking. I don't understand why.
* add a pid fileGravatar Joey Hess2012-06-11
| | | | | Writes pid to a file. Is supposed to take an exclusive lock, but that's not working, and it's too late for me to understand why.
* daemonize git annex watchGravatar Joey Hess2012-06-11