Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openrc script to our Wiki #976

Closed
ameshkov opened this issue Sep 2, 2019 · 4 comments
Closed

Add openrc script to our Wiki #976

ameshkov opened this issue Sep 2, 2019 · 4 comments
Milestone

Comments

@ameshkov
Copy link
Member

ameshkov commented Sep 2, 2019

See the pull request here:
#933

@ameshkov ameshkov added this to the v0.100 milestone Sep 2, 2019
@szolin
Copy link
Contributor

szolin commented Oct 14, 2019

done. need to push to github

@szolin szolin closed this as completed Oct 18, 2019
@ameshkov ameshkov modified the milestones: v0.100, v0.99 Oct 23, 2019
adguard pushed a commit that referenced this issue Feb 5, 2021
Merge in DNS/adguard-home from less-cyclo to master

Updates #2646.

Squashed commit of the following:

commit 42f81c9
Merge: f61e236 42b88c3
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 5 15:07:04 2021 +0300

    Merge branch 'master' into less-cyclo

commit f61e236
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 5 15:06:02 2021 +0300

    home: imp docs

commit e3c2310
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Wed Jan 27 21:14:30 2021 +0300

    all: imp cyclomatic complexity, minor improvements
@hronro
Copy link

hronro commented Nov 1, 2021

I'm not able to find it in the wiki, is it removed?

heyxkhoa pushed a commit to heyxkhoa/AdGuardHome that referenced this issue Mar 20, 2023
…mprovements

Merge in DNS/adguard-home from less-cyclo to master

Updates AdguardTeam#2646.

Squashed commit of the following:

commit 42f81c9
Merge: f61e236 42b88c3
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 5 15:07:04 2021 +0300

    Merge branch 'master' into less-cyclo

commit f61e236
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Fri Feb 5 15:06:02 2021 +0300

    home: imp docs

commit e3c2310
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Wed Jan 27 21:14:30 2021 +0300

    all: imp cyclomatic complexity, minor improvements
@bcookatpcsd
Copy link

https://vladislav.xyz/posts/adguard-on-alpine-linux/

add this to /etc/init.d/AdguardHome

#!/sbin/openrc-run
#
# openrc service-script for AdGuardHome
#
# place in /etc/init.d/
# start on boot: "rc-update add adguardhome"
# control service: "service adguardhome <start|stop|restart|status|checkconfig>"
#

description="AdGuard Home: Network-level blocker"

pidfile="/run/$RC_SVCNAME.pid"
command="/opt/AdGuardHome/AdGuardHome"
command_args="-s run"
command_background=true

extra_commands="checkconfig"

depend() {
  need net
  provide dns
  after firewall
}

checkconfig() {
  "$command" --check-config || return 1
}

stop() {
  if [ "${RC_CMD}" = "restart" ] ; then
    checkconfig || return 1
  fi

  ebegin "Stopping $RC_SVCNAME"
  start-stop-daemon --stop --exec "$command" \
    --pidfile "$pidfile" --quiet
  eend $?
}

@bcookatpcsd
Copy link

command_args="-s run --no-etc-hosts --config /etc/adguardhome/AdGuardHome.yaml --logfile /var/log/adguard.log"

personal adds..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants