| 1 |
[Unit] |
| 2 |
Description=Mirrorbits redirector |
| 3 |
Documentation=https://github.com/etix/mirrorbits |
| 4 |
After=network.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=notify |
| 8 |
DynamicUser=yes |
| 9 |
LogsDirectory=mirrorbits |
| 10 |
RuntimeDirectory=mirrorbits |
| 11 |
PIDFile=/run/mirrorbits/mirrorbits.pid |
| 12 |
ExecStart=##PREFIX##/bin/mirrorbits daemon -p /run/mirrorbits/mirrorbits.pid |
| 13 |
ExecReload=/bin/kill -HUP $MAINPID |
| 14 |
ExecStop=-/bin/kill -QUIT $MAINPID |
| 15 |
TimeoutStopSec=5 |
| 16 |
KillMode=mixed |
| 17 |
Restart=on-failure |
| 18 |
|
| 19 |
[Install] |
| 20 |
WantedBy=multi-user.target |