Full changelog available at: https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.107.0
packr has been removed from build dependencies, per
c6888326b0 (diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L2)
Also added the ability to configure working directory location and moved
the directory to /var. On most setups this should not change anything,
as /var is symlinked to /tmp. The move mostly benefits setups where /var
is configured to be persistent.
The working directory is used by AdGuard to store persistent data like
query logs, filter lists, etc.
Data stored in this directory can get really huge, as such allowing
this directory to be moved elsewhere (ie. an USB drive) is very
beneficial.
Co-authored-by: Dobroslaw Kijowski <dobo90@gmail.com>
Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Hiếu Lê <leorize+oss@disroot.org>
23 lines
475 B
Bash
23 lines
475 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
PROG=/usr/bin/AdGuardHome
|
|
|
|
USE_PROCD=1
|
|
|
|
# starts after network starts
|
|
START=21
|
|
# stops before networking stops
|
|
STOP=89
|
|
|
|
start_service() {
|
|
config_load adguardhome
|
|
config_get WORK_DIR config workdir
|
|
|
|
[ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR"
|
|
|
|
procd_open_instance
|
|
procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w "$WORK_DIR" --no-check-update
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_close_instance
|
|
}
|