summaryrefslogtreecommitdiff
path: root/doc/todo/windows_git-annex_service.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-06-16 18:34:51 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-06-16 18:34:51 -0400
commit43f5e9d3eb748eeb60250366c23a3cfb494ab9b7 (patch)
tree315fbde1d0ba075919faf6540e39a06c7acd99b4 /doc/todo/windows_git-annex_service.mdwn
parentef4de5d79b8ef1dbd1749f5e1e56e112eb9cd10d (diff)
split out windows service todo
Diffstat (limited to 'doc/todo/windows_git-annex_service.mdwn')
-rw-r--r--doc/todo/windows_git-annex_service.mdwn30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/todo/windows_git-annex_service.mdwn b/doc/todo/windows_git-annex_service.mdwn
new file mode 100644
index 000000000..5fad4841e
--- /dev/null
+++ b/doc/todo/windows_git-annex_service.mdwn
@@ -0,0 +1,30 @@
+## git-annex as service on windows
+
+Use nssm to run git-annex as a service. Will need to include it in the
+git-annex bundle.
+
+Problem: nssm runs git-annex as a service as a LocalService user. (Or some
+similar user.) This leads to permission problems, when the normal user
+tries to write to its directory.
+
+Solution: Make `git-annex mkservice $repo` command (only avilable on
+Windows) that does:
+
+1. git -c core.sharedRepository=true init $repo
+2. cd $repo; git annex init
+4. chmod 777 -R $repo
+5. Add $repo to C:\Documents and Settings\All Users\.config\git-annex\autostart
+6. If git-annex service does not yet exist in nssm, set it up and start it.
+
+Note that the shared repository perms are not perfect, but this should
+allow any user to drop files into the annex, and whatever use the service
+runs as (probably LocalService) can write to the .git/ repository).
+
+Make git-annex read `C:\Documents and Settings\All Users\.config\git-annex\autostart`
+on Windows, rather than the one in $HOME. This way, `git annex assistant
+--autostart` and `git annex webapp` will use it, no matter which user.
+
+This bypasses the normal webapp configuration of the repo, but an annex
+folder on the desktop is a fine default in Windows, and the webapp can be
+used to add other repositories if desired. (Might need to tweak their
+permissions though.)