diff options
Diffstat (limited to 'network/AdGuardHome')
-rw-r--r-- | network/AdGuardHome/AdGuardHome.SlackBuild | 2 | ||||
-rw-r--r-- | network/AdGuardHome/README.SBo | 5 | ||||
-rw-r--r-- | network/AdGuardHome/rc.AdGuardHome | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/network/AdGuardHome/AdGuardHome.SlackBuild b/network/AdGuardHome/AdGuardHome.SlackBuild index 713ec42f9f92..557eab04e24f 100644 --- a/network/AdGuardHome/AdGuardHome.SlackBuild +++ b/network/AdGuardHome/AdGuardHome.SlackBuild @@ -74,8 +74,6 @@ install -m 0755 -o root -g root AdGuardHome $PKG/usr/sbin install -m 0644 -o root -g root $CWD/rc.AdGuardHome \ $PKG/etc/rc.d/rc.AdGuardHome.new -mkdir -p $PKG/var/lib/AdGuardHome - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/network/AdGuardHome/README.SBo b/network/AdGuardHome/README.SBo index 98ba0c50a94a..843901ae4284 100644 --- a/network/AdGuardHome/README.SBo +++ b/network/AdGuardHome/README.SBo @@ -1,6 +1,11 @@ A simple init script /etc/rc.d/rc.AdGuardHome has been provided to run AdGuard Home as a daemon. +After first install, run +# chmod +x /etc/rc.d/rc.AdGuardHome +# /etc/rc.d/rc.AdGuardHome start +Then go to the initial configuration wizard at http://localhost:3000 + To start AdGuard Home automatically at system start, add the following to /etc/rc.d/rc.local: diff --git a/network/AdGuardHome/rc.AdGuardHome b/network/AdGuardHome/rc.AdGuardHome index 23832689d130..f872e51e0924 100644 --- a/network/AdGuardHome/rc.AdGuardHome +++ b/network/AdGuardHome/rc.AdGuardHome @@ -4,7 +4,7 @@ bin=/usr/sbin/AdGuardHome config=/etc/AdGuardHome.yaml workdir=/var/lib/AdGuardHome -pidfile=/var/run/AdGuardHome.pid +pidfile=/run/AdGuardHome.pid start_AdGuardHome() { echo "Starting AdGuard Home... " @@ -12,6 +12,7 @@ start_AdGuardHome() { echo "AdGuard Home is already running with PID $(cat ${pidfile})." exit 0 fi + mkdir -p $workdir nohup $bin --config $config --work-dir $workdir --no-check-update \ --pidfile $pidfile 0<&- &>/dev/null & } |