adguard-home/templates/AdGuardHome.service.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 05 Sep 2022 16:02:56 -0500
changeset 187 0f3a64c60ec5
parent 50 15edca738a31
permissions -rw-r--r--
Added lnd REST api to nginx. Moved prometheus and apt-cacher data to external hdd.
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