| 1 | [Unit] |
| 2 | Description=Grok-fsck service for %I |
| 3 | Documentation=https://github.com/mricon/grokmirror |
| 4 | |
| 5 | [Service] |
| 6 | Type=oneshot |
| 7 | Environment="EXTRA_FSCK_OPTS=" |
| 8 | EnvironmentFile=-/etc/default/grokmirror |
| 9 | EnvironmentFile=-/etc/default/grokmirror.%i |
| 10 | ExecStart=/usr/bin/grok-fsck -c /etc/grokmirror/%i.conf $EXTRA_FSCK_OPTS |
| 11 | CPUSchedulingPolicy=batch |
| 12 | # To override these users, create a drop-in systemd conf file in |
| 13 | # /etc/systemd/system/grok-fsck@[foo].service.d/10-usergroup.conf: |
| 14 | # [Service] |
| 15 | # User=yourpreference |
| 16 | # Group=yourpreference |
| 17 | User=gitdaemon |
| 18 | Group=gitdaemon |