git-annex/doc/todo/windows_git-annex_service.mdwn

31 lines
1.1 KiB
Text
Raw Normal View History

2014-06-16 22:34:51 +00:00
## 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
2014-06-16 23:12:01 +00:00
5. Add $repo to C:\.config\git-annex\autostart
2014-06-16 22:34:51 +00:00
6. If git-annex service does not yet exist in nssm, set it up and start it.
2014-06-16 23:12:01 +00:00
**Problem**: With 2 users writing to one repository, files and subdirs
will end up owned by git-annex or by the desktop user, and the other user
won't be able to eg, edit a file or remove a file from a directory.
2014-06-16 22:34:51 +00:00
2014-06-16 23:12:01 +00:00
Make git-annex read `C:\.config\git-annex\autostart`
on Windows, in addition to the one in $HOME. This way, `git annex assistant
2014-06-16 22:34:51 +00:00
--autostart` and `git annex webapp` will use it, no matter which user.
2014-06-16 23:12:38 +00:00
WIP git branch: `winservice`
2014-06-17 18:07:16 +00:00
> I am calling this [[done]], it's not done using a service, but it works.
> --[[Joey]]