systemd migration

This commit is contained in:
thomas 2022-03-22 22:24:15 +01:00
parent a20c6440ee
commit 188ffb6c70
17 changed files with 35 additions and 19 deletions

View file

@ -0,0 +1 @@
/etc/defaults/adguardhome

View file

@ -3,5 +3,5 @@ Version: %VERSION%
Section: base
Priority: optional
Architecture: amd64
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: adguardhome
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: AdGuard Home is a network-wide software for blocking ads & tracking. After you set it up, itll cover ALL your home devices, and you dont need any client-side software for that. With the rise of Internet-Of-Things and connected devices, it becomes more and more important to be able to control your whole network.

View file

@ -0,0 +1,4 @@
# Options to pass to adguardhome
# see /usr/bin/adguardhome --help
ADGH_OPTS=-c /etc/adguardhome.yaml -w /var/lib/adguardhome

View file

@ -4,10 +4,10 @@ ConditionFileIsExecutable=/usr/bin/adguardhome
After=syslog.target network-online.target
[Service]
EnvironmentFile=-/etc/default/adguardhome
EnvironmentFile=/etc/default/adguardhome
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/usr/bin/adguardhome -c /etc/adguardhome.yaml -w /var/lib/adguardhome
ExecStart=/usr/bin/adguardhome $ADGH_OPTS
WorkingDirectory=/var/lib/adguardhome
Restart=always