You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh /etc/rc.common
|
|
|
|
PROG=/usr/bin/AdGuardHome
|
|
WORK_DIR=/tmp/adguardhome
|
|
|
|
USE_PROCD=1
|
|
|
|
# starts after network starts
|
|
START=21
|
|
# stops before networking stops
|
|
STOP=89
|
|
|
|
start_service() {
|
|
[ -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
|
|
}
|