This commit is contained in:
Benoit S 2021-01-20 21:40:21 +09:00
parent 8b0f093b5d
commit 4b58a930aa
5 changed files with 328 additions and 0 deletions

24
files/AdGuardHome.service Normal file
View file

@ -0,0 +1,24 @@
[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