adguard-home/templates/AdGuardHome.service.j2
changeset 50 15edca738a31
equal deleted inserted replaced
49:05924a38d51f 50:15edca738a31
       
     1 [Unit]
       
     2 Description=AdGuard Home: Network-level blocker
       
     3 After=syslog.target network-online.target
       
     4 
       
     5 [Service]
       
     6 StartLimitInterval=5
       
     7 StartLimitBurst=10
       
     8 ExecStart=/usr/local/bin/AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w {{adguard_home_data_dir}}
       
     9 
       
    10 WorkingDirectory={{adguard_home_data_dir}}
       
    11 
       
    12 StandardOutput=file:/var/log/AdGuardHome.out
       
    13 StandardError=file:/var/log/AdGuardHome.err
       
    14 Restart=always
       
    15 RestartSec=10
       
    16 EnvironmentFile=-/etc/sysconfig/AdGuardHome
       
    17 
       
    18 [Install]
       
    19 WantedBy=multi-user.target