[Unit]
Description=AdGuard Home: Network-level blocker
ConditionFileIsExecutable=__FINALPATH__/AdGuardHome
After=syslog.target network-online.target

[Service]
Type=simple
User=__APP__
Group=__APP__
StartLimitInterval=5
StartLimitBurst=10
WorkingDirectory=__FINALPATH__/AdGuardHome
ExecStart=__FINALPATH__/AdGuardHome 
#-s start -c __FINALPATH__/AdGuardHome/AdGuardHome.yaml -w __FINALPATH__ -h 127.0.0.1 -p __PORT__
#StandardOutput=file:/var/log/__APP__.out
#StandardError=file:/var/log/__APP__.err
Restart=always
RestartSec=10
#EnvironmentFile=-/etc/sysconfig/AdGuardHome

[Install]
WantedBy=multi-user.target
