1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/testing/ndisc6/rdnssd.initd
2019-08-26 15:01:10 -03:00

20 lines
418 B
Text

#!/sbin/openrc-run
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need localmount
before net
use logger
}
start() {
ebegin "Starting rdnssd"
start-stop-daemon --start --quiet --exec /usr/sbin/rdnssd -- -u root -r /etc/resolv.conf
eend $?
}
stop() {
ebegin "Stopping rdnssd"
start-stop-daemon --stop --quiet --pidfile /run/rdnssd.pid
}