summaryrefslogtreecommitdiff
blob: 0b73ce6cc759058cf1088199e7511ad6bafd8dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init,v 1.1 2002/06/29 00:55:03 bangert Exp $

depend() {
	need net
}

start() {
	ebegin "Starting dnsmasq"
	start-stop-daemon --start --quiet --exec /usr/sbin/dnsmasq \
		-- -x /var/run/dnsmasq.pid ${DNSMASQ_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping dnsmasq"
	start-stop-daemon --stop --quiet --pidfile /var/run/dnsmasq.pid
	eend $?
}