adguard-home/templates/AdGuardHome.service.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 05 Jul 2020 10:25:32 -0500
changeset 118 56bffa9ef826
parent 50 15edca738a31
permissions -rw-r--r--
Added nginx and oragono HUP reloading to systemd handlers. Added nginx config.
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