Pyinfra that deploy my AdGuardHome DNS server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
545 B

[Unit]
Description=AdGuard Home: Network-level blocker
ConditionFileIsExecutable=/home/adguard/AdGuardHome/AdGuardHome
After=syslog.target network-online.target
[Service]
User=adguard
Group=adguard
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/home/adguard/AdGuardHome/AdGuardHome "-s" "run"
WorkingDirectory=/home/adguard/AdGuardHome
StandardOutput=file:/var/log/AdGuardHome.out
StandardError=file:/var/log/AdGuardHome.err
Restart=always
RestartSec=10
EnvironmentFile=-/etc/sysconfig/AdGuardHome
[Install]
WantedBy=multi-user.target