2019-01-09 09:48:23 +01:00
|
|
|
[Unit]
|
2021-07-06 18:34:47 +02:00
|
|
|
Description=AdGuard Home: Network-level blocker
|
|
|
|
ConditionFileIsExecutable=__FINALPATH__/AdGuardHome
|
|
|
|
After=syslog.target network-online.target
|
2019-01-09 09:48:23 +01:00
|
|
|
|
|
|
|
[Service]
|
2021-07-06 17:45:33 +02:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
StartLimitInterval=5
|
|
|
|
StartLimitBurst=10
|
2021-08-08 10:54:46 +02:00
|
|
|
ExecStart=__FINALPATH__/AdGuardHome/AdGuardHome -s start -c __FINALPATH__/AdGuardHome/AdGuardHome.yaml -w __FINALPATH__ -h 127.0.0.1 -p __PORT__
|
|
|
|
WorkingDirectory=__FINALPATH__/AdGuardHome
|
2021-07-06 18:34:47 +02:00
|
|
|
#StandardOutput=file:/var/log/__APP__.out
|
|
|
|
#StandardError=file:/var/log/__APP__.err
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
|
|
|
#EnvironmentFile=-/etc/sysconfig/AdGuardHome
|
2019-01-09 09:48:23 +01:00
|
|
|
|
|
|
|
[Install]
|
2021-07-06 17:45:33 +02:00
|
|
|
WantedBy=multi-user.target
|