summaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repositor...
diff options
context:
space:
mode:
authorGravatar db48x <db48x@web>2015-04-28 18:15:41 +0000
committerGravatar admin <admin@branchable.com>2015-04-28 18:15:41 +0000
commit54123fa73fd8979d80c671ce464b7a157601db56 (patch)
tree430bb7ea7af860d05388253435a6ba297af586c6 /doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn
parentae3085ad903638d6fef24d8f158da095ba60c714 (diff)
Diffstat (limited to 'doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn')
-rw-r--r--doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn b/doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn
new file mode 100644
index 000000000..41e921bef
--- /dev/null
+++ b/doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn
@@ -0,0 +1,16 @@
+I set up a systemd unit to start the assistant, which works fine (it uses --autostart). When it comes time to stop the unit, however, it calls git annex assistant --stop, which fails because the current directory doesn't have a git annex repository in it.
+
+ git-annex version: 5.20140717
+ build flags: Assistant Inotify DBus Quvi TDFA
+ key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SHA256 SHA1 SHA512 SHA224 SHA384 WORM URL
+ remote types: git gcrypt bup directory rsync web tahoe glacier ddar hook external
+
+Here's my unit file:
+[[!format ini """
+[Service]
+ExecStart=/usr/bin/git-annex assistant --autostart
+ExecStop=/usr/bin/git-annex assistant --stop
+
+[Install]
+WantedBy=default.target
+"""]]