summaryrefslogtreecommitdiff
blob: a3a2a45a2d1fa27954fcf3abfc629e845620cf49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	need localmount
	before net
	use logger
}

command="rdnssd"
pidfile="/var/run/rdnssd.pid"
command_args="${RDNSSD_OPTS}"
command_args_foreground="-f"

start_pre() {
	checkpath -d -o nobody /var/run/rdnssd
}

stop_post() {
	if command -v resolvconf >/dev/null; then
		resolvconf -f -d rdnssd
	fi
}