From d27891a70dc916fc73dd904a80a8f149ecea7173 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Jun 2014 18:34:51 -0400 Subject: [PATCH] split out windows service todo --- doc/todo/windows_git-annex_service.mdwn | 30 +++++++++++++++++++ ..._c3af14453e99dae5425deaa26ca7310e._comment | 0 ..._d3d91ddc00bc275455022d86b779b148._comment | 0 ..._59fbe4d07cdbeb786bae792f9c709ddd._comment | 0 ..._79fc0ff98c5bba2ed616e52e5a58e28f._comment | 0 ..._fcd34607116183cc1a764fb307eabe0a._comment | 0 ..._6a6424f23772e57f1adb1807ca8b93fa._comment | 0 ..._62a1a33c2aaf4b0b8a0149ec526907d7._comment | 0 ..._3a408492107ca6f120b631ce8c41faef._comment | 0 ..._c6cbc8fe9218f90c661cd1026658c939._comment | 0 ..._ca245781a37db5546da3f7204adbeebb._comment | 0 doc/todo/windows_support.mdwn | 5 +--- 12 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 doc/todo/windows_git-annex_service.mdwn rename doc/todo/{windows_support => windows_git-annex_service}/comment_11_c3af14453e99dae5425deaa26ca7310e._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_12_d3d91ddc00bc275455022d86b779b148._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_13_59fbe4d07cdbeb786bae792f9c709ddd._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_14_79fc0ff98c5bba2ed616e52e5a58e28f._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_15_fcd34607116183cc1a764fb307eabe0a._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_16_6a6424f23772e57f1adb1807ca8b93fa._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_17_62a1a33c2aaf4b0b8a0149ec526907d7._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_18_3a408492107ca6f120b631ce8c41faef._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_19_c6cbc8fe9218f90c661cd1026658c939._comment (100%) rename doc/todo/{windows_support => windows_git-annex_service}/comment_20_ca245781a37db5546da3f7204adbeebb._comment (100%) diff --git a/doc/todo/windows_git-annex_service.mdwn b/doc/todo/windows_git-annex_service.mdwn new file mode 100644 index 0000000000..5fad4841e8 --- /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.) diff --git a/doc/todo/windows_support/comment_11_c3af14453e99dae5425deaa26ca7310e._comment b/doc/todo/windows_git-annex_service/comment_11_c3af14453e99dae5425deaa26ca7310e._comment similarity index 100% rename from doc/todo/windows_support/comment_11_c3af14453e99dae5425deaa26ca7310e._comment rename to doc/todo/windows_git-annex_service/comment_11_c3af14453e99dae5425deaa26ca7310e._comment diff --git a/doc/todo/windows_support/comment_12_d3d91ddc00bc275455022d86b779b148._comment b/doc/todo/windows_git-annex_service/comment_12_d3d91ddc00bc275455022d86b779b148._comment similarity index 100% rename from doc/todo/windows_support/comment_12_d3d91ddc00bc275455022d86b779b148._comment rename to doc/todo/windows_git-annex_service/comment_12_d3d91ddc00bc275455022d86b779b148._comment diff --git a/doc/todo/windows_support/comment_13_59fbe4d07cdbeb786bae792f9c709ddd._comment b/doc/todo/windows_git-annex_service/comment_13_59fbe4d07cdbeb786bae792f9c709ddd._comment similarity index 100% rename from doc/todo/windows_support/comment_13_59fbe4d07cdbeb786bae792f9c709ddd._comment rename to doc/todo/windows_git-annex_service/comment_13_59fbe4d07cdbeb786bae792f9c709ddd._comment diff --git a/doc/todo/windows_support/comment_14_79fc0ff98c5bba2ed616e52e5a58e28f._comment b/doc/todo/windows_git-annex_service/comment_14_79fc0ff98c5bba2ed616e52e5a58e28f._comment similarity index 100% rename from doc/todo/windows_support/comment_14_79fc0ff98c5bba2ed616e52e5a58e28f._comment rename to doc/todo/windows_git-annex_service/comment_14_79fc0ff98c5bba2ed616e52e5a58e28f._comment diff --git a/doc/todo/windows_support/comment_15_fcd34607116183cc1a764fb307eabe0a._comment b/doc/todo/windows_git-annex_service/comment_15_fcd34607116183cc1a764fb307eabe0a._comment similarity index 100% rename from doc/todo/windows_support/comment_15_fcd34607116183cc1a764fb307eabe0a._comment rename to doc/todo/windows_git-annex_service/comment_15_fcd34607116183cc1a764fb307eabe0a._comment diff --git a/doc/todo/windows_support/comment_16_6a6424f23772e57f1adb1807ca8b93fa._comment b/doc/todo/windows_git-annex_service/comment_16_6a6424f23772e57f1adb1807ca8b93fa._comment similarity index 100% rename from doc/todo/windows_support/comment_16_6a6424f23772e57f1adb1807ca8b93fa._comment rename to doc/todo/windows_git-annex_service/comment_16_6a6424f23772e57f1adb1807ca8b93fa._comment diff --git a/doc/todo/windows_support/comment_17_62a1a33c2aaf4b0b8a0149ec526907d7._comment b/doc/todo/windows_git-annex_service/comment_17_62a1a33c2aaf4b0b8a0149ec526907d7._comment similarity index 100% rename from doc/todo/windows_support/comment_17_62a1a33c2aaf4b0b8a0149ec526907d7._comment rename to doc/todo/windows_git-annex_service/comment_17_62a1a33c2aaf4b0b8a0149ec526907d7._comment diff --git a/doc/todo/windows_support/comment_18_3a408492107ca6f120b631ce8c41faef._comment b/doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment similarity index 100% rename from doc/todo/windows_support/comment_18_3a408492107ca6f120b631ce8c41faef._comment rename to doc/todo/windows_git-annex_service/comment_18_3a408492107ca6f120b631ce8c41faef._comment diff --git a/doc/todo/windows_support/comment_19_c6cbc8fe9218f90c661cd1026658c939._comment b/doc/todo/windows_git-annex_service/comment_19_c6cbc8fe9218f90c661cd1026658c939._comment similarity index 100% rename from doc/todo/windows_support/comment_19_c6cbc8fe9218f90c661cd1026658c939._comment rename to doc/todo/windows_git-annex_service/comment_19_c6cbc8fe9218f90c661cd1026658c939._comment diff --git a/doc/todo/windows_support/comment_20_ca245781a37db5546da3f7204adbeebb._comment b/doc/todo/windows_git-annex_service/comment_20_ca245781a37db5546da3f7204adbeebb._comment similarity index 100% rename from doc/todo/windows_support/comment_20_ca245781a37db5546da3f7204adbeebb._comment rename to doc/todo/windows_git-annex_service/comment_20_ca245781a37db5546da3f7204adbeebb._comment diff --git a/doc/todo/windows_support.mdwn b/doc/todo/windows_support.mdwn index 0afcbb4fe1..59e701610f 100644 --- a/doc/todo/windows_support.mdwn +++ b/doc/todo/windows_support.mdwn @@ -3,10 +3,7 @@ now! --[[Joey]] ## status -* Doesn't daemonize. Maybe use - - or perhaps easier, - +* [[todo/windows_git-annex_service]] needed * XMPP library not yet built. (See below.)