mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-11-10 09:12:29 +08:00
28 lines
662 B
Desktop File
28 lines
662 B
Desktop File
[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
|