| 1 |
[Unit] |
| 2 |
Description=Grok-pull service for %I |
| 3 |
After=network.target |
| 4 |
Documentation=https://github.com/mricon/grokmirror |
| 5 |
|
| 6 |
[Service] |
| 7 |
Environment="EXTRA_PULL_OPTS=" |
| 8 |
EnvironmentFile=-/etc/sysconfig/grokmirror.default |
| 9 |
EnvironmentFile=-/etc/sysconfig/grokmirror.%i |
| 10 |
ExecStart=/usr/bin/grok-pull -o -c /etc/grokmirror/%i.conf $EXTRA_PULL_OPTS |
| 11 |
Type=simple |
| 12 |
Restart=on-failure |
| 13 |
# To override these users, create a drop-in systemd conf file in |
| 14 |
# /etc/systemd/system/grok-pull@[foo].service.d/10-usergroup.conf: |
| 15 |
# [Service] |
| 16 |
# User=yourpreference |
| 17 |
# Group=yourpreference |
| 18 |
User=mirror |
| 19 |
Group=mirror |
| 20 |
|
| 21 |
[Install] |
| 22 |
WantedBy=multi-user.target |