Joey Hess
ebd781984e
clean up now unused imports
2014-09-16 13:37:50 -04:00
Joey Hess
09e20c3827
assistant: Detect when repository has been deleted or moved, and automatically shut down the assistant. Closes : #761261
2014-09-15 14:45:37 -04:00
Joey Hess
f11f7520b5
windows: Fix process termination code.
...
The ctrl-c hack used before didn't actually seem to work.
No haskell libraries expose TerminateProcess. I tried just calling it via
FFI, but got segfaults, probably to do with the wacky process handle not
being managed correctly. Moving it all into one C function worked.
This was hell. The EvilLinker hack was just final icing on the cake.
We all know what the cake was made of.
2014-02-13 15:53:10 -04:00
Joey Hess
7b19c7d25b
cleanup thanks to Utility.PID
2014-02-11 15:39:51 -04:00
Joey Hess
011b8bc7ec
pull in Win32-extras, to be able to get current process id in Windows
...
Fixed up a number of things that had worked around there not being a way to
get that.
Most notably, transfer info files on windows now include the process id,
since no locking is currently done. This means the file format varies
between windows and unix.
2013-12-11 00:15:10 -04:00
Joey Hess
621ca07119
squash warning
2013-12-05 14:16:07 -04:00
Joey Hess
7a8e47d178
allow building on windows
2013-12-05 14:10:49 -04:00
Joey Hess
8a9928742f
more build fixes (remove phantom shutdown page)
2013-11-25 14:33:14 -04:00
Joey Hess
7dc02b0c91
lifyH getYesod, to work with older version
2013-11-25 12:54:59 -04:00
Joey Hess
6802123f7d
use global webapp redirects when shutting down
2013-11-23 16:21:09 -04:00
Joey Hess
b1a89c448a
replace horrible old daemon restart code with new method
2013-11-23 15:50:17 -04:00
Joey Hess
94251de91e
add readFileStrictAnyEncoding
2013-11-20 13:41:13 -04:00
Joey Hess
b7c15f3b60
webapp: Avoid encoding problems when displaying the daemon log file.
2013-11-07 15:29:20 -04:00
Joey Hess
a1b1b5ef52
moved code out of webapp
...
No code changes, aside from some changes to lifting in code that turned out
to be able to run in Assistant rather than Handler.
2013-10-26 16:58:16 -04:00
Joey Hess
54e0bd55b4
fun with exec
2013-07-23 17:31:51 -04:00
Joey Hess
ff4f008591
clean up build warnings with yesod 1.2, while still building with 1.1
2013-06-27 01:15:28 -04:00
Joey Hess
2c42e70f6c
rename module
2013-04-23 11:38:52 -04:00
Joey Hess
b40e8fc5da
display alert in webapp when assistant shuts down
...
and remove any activity alerts
2013-04-10 17:52:04 -04:00
Joey Hess
d8f8aa6921
assistant: Stop any transfers the assistant initiated on shutdown.
2013-04-10 17:38:53 -04:00
Joey Hess
c94c99942b
make liftAnnex and liftAssistant polymorphic, like liftIO
2013-03-16 00:19:56 -04:00
Joey Hess
907b0c0d78
better liftAnnex, avoid using runAnnex undefined
2013-03-04 16:36:38 -04:00
Joey Hess
76ddf9b6d3
webapp: Now allows restarting any threads that crash.
2013-01-26 17:09:33 +11:00
Joey Hess
e15cca7db8
webapp: Now has a page to view the log, accessed from the control menu.
2013-01-15 13:52:35 -04:00
Joey Hess
bad9b6761d
restart UI
...
Browser behavior is not ideal; a new tab is opened on restart.
Browsers won't let me redirect to a file:// so I cannot use the old tab.
2013-01-03 18:50:30 -04:00
Joey Hess
de2e287133
webapp: Add UI to stop assistant.
...
Would like to also have restart UI, but that's rather harder to do,
seems it'd need to start another copy of the webapp, and redirect the
browser to its new url, but running two assistants in the same repo at
the same time isn't good.
2013-01-03 15:24:21 -04:00