mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-01-08 16:19:34 +08:00
29 lines
662 B
SYSTEMD
29 lines
662 B
SYSTEMD
|
[Unit]
|
||
|
Description=AdGuard Home Sync service
|
||
|
ConditionFileIsExecutable=/opt/AdGuardHomeSync/adguardhome-sync
|
||
|
|
||
|
Requires=network.target
|
||
|
After=network-online.target syslog.target
|
||
|
|
||
|
[Service]
|
||
|
StartLimitInterval=5
|
||
|
StartLimitBurst=10
|
||
|
ExecStart=/opt/AdGuardHomeSync/adguardhome-sync "run" "--config" "/opt/AdGuardHomeSync/adguardhome-sync.yaml"
|
||
|
WorkingDirectory=/opt/AdGuardHome
|
||
|
|
||
|
|
||
|
Restart=on-success
|
||
|
SuccessExitStatus=1 2 8 SIGKILL
|
||
|
RestartSec=120
|
||
|
EnvironmentFile=-/etc/sysconfig/GoServiceExampleLogging
|
||
|
|
||
|
|
||
|
|
||
|
StandardOutput=file:/var/log/AdGuardHomeSync.out
|
||
|
StandardError=file:/var/log/AdGuardHomeSync.err
|
||
|
Restart=always
|
||
|
RestartSec=10
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|