summaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_assistant_--stop_fails_if_not_run_from_inside_a_git_annex_repository.mdwn
blob: 70ece97ec4776a8bf1f37917dafcb94ed0a4cde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
"""]]

> This seems to overlap with [[todo/server-level_daemon__63__/]] in some way... --[[anarcat]]