File: comment_1_06399a293f08401032bef1b94f05547c._comment

package info (click to toggle)
git-annex 8.20210223-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,764 kB
  • sloc: haskell: 70,359; javascript: 9,103; sh: 1,304; makefile: 212; perl: 136; ansic: 44
file content (25 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[[!comment format=mdwn
 username="oberix@c7a19cddb1663df0c612a979b9d13b0d67f1f69a"
 nickname="oberix"
 avatar="http://cdn.libravatar.org/avatar/e8b871f3d0bf96df9a3fc8cdca7abe09"
 subject="autostart and foreground together doesn't seem to work"
 date="2017-03-30T10:43:18Z"
 content="""
With systemd using `--autostart --foreground` either ignore foreground or quit immediatelly.

I managed to have the process stay alive with `RemainAfterExit=on`:

    [Service]
    User=%i
    ExecStart=/usr/bin/git-annex assistant --autostart --foreground
    ExecStop=/usr/bin/git-annex assistant --autostop
    RemainAfterExit=on
    Restart=on-failure
    RestartSec=5

but git-annex processes does not maintain the `--foreground` option which is causing a lot of zombies in the long period (not totally clear why).

My current solution is to have a service for each annex repository and avoid `--autosart` but this is annoying because it require to pass the path as `%I` and wrap git-annex in bash script to get the repo owner as the user.


"""]]