adguard-home/templates/AdGuardHome.service.j2
author Luke Hoersten <luke@hoersten.org>
Fri, 20 Nov 2020 13:50:42 -0600
changeset 145 7d94a7cab2f6
parent 50 15edca738a31
permissions -rw-r--r--
Updated minecraft.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=AdGuard Home: Network-level blocker
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
After=syslog.target network-online.target
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
[Service]
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
StartLimitInterval=5
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
StartLimitBurst=10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
ExecStart=/usr/local/bin/AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w {{adguard_home_data_dir}}
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
WorkingDirectory={{adguard_home_data_dir}}
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
StandardOutput=file:/var/log/AdGuardHome.out
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
StandardError=file:/var/log/AdGuardHome.err
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
Restart=always
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
RestartSec=10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
EnvironmentFile=-/etc/sysconfig/AdGuardHome
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
[Install]
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
WantedBy=multi-user.target