From 43f5e9d3eb748eeb60250366c23a3cfb494ab9b7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Jun 2014 18:34:51 -0400 Subject: split out windows service todo --- ...nt_18_3a408492107ca6f120b631ce8c41faef._comment | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment (limited to 'doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment') diff --git a/doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment b/doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment new file mode 100644 index 000000000..494e3f43a --- /dev/null +++ b/doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="108.236.230.124" + subject="nssm notes" + date="2014-06-10T18:16:00Z" + content=""" +* Have to install and run nssm as an administrator. (It may be possible to get it to run as a non-administrator user if the admin sets it up. I haven't succeeded.) +* `nssm install git-annex` +* Set path to git-annex, and set Arguments to: `assistant --autostart` +* In Exit tab, change Restart to \"No action\" +* In Process tab, uncheck \"Console window\" +* Repositories to start up have to be listed in `C:\Documents and Settings\LocalService\.config\git-annex\autostart` + (rather than the normal user home directory) + +After all that it works! Even opening git-annex webapp from the menu avoids the console window (it appears briefly but then goes away). + +Most of this setup could be boiled down to a command line invocation, which git-annex could do at install time. However, it would still need to be run by the admin. Luckily the git-annex installation process already only works as admin (and I guess I could close the bug about that if it gets a legitimate reason to need admin..) + +Some changes in git-annex would improve this. + +* Maybe have a way to specify the user that git-annex is running on behalf of, and look in that user's home directory, rather than LocalService. (Other parts of the webapp UI, like adding a new repository, also use LocalService as the home directory, which is confusing). +* Starting the webapp for the first time to create a repository still opens a console window, so find a workaround for this. +"""]] -- cgit v1.2.3