Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 586454
Collapse All | Expand All

(-)a/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1 (-1 / +7 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License, v2 or later
3
# Distributed under the terms of the GNU General Public License, v2 or later
4
# $Id$
4
# $Id$
5
5
6
extra_started_commands="reload"
6
extra_started_commands="reload rotate"
7
7
8
pidfile="/var/run/dnsmasq.pid"
8
pidfile="/var/run/dnsmasq.pid"
9
command="/usr/sbin/dnsmasq"
9
command="/usr/sbin/dnsmasq"
Lines 28-30 reload() { Link Here
28
	kill -HUP $(cat "${pidfile}")
28
	kill -HUP $(cat "${pidfile}")
29
	eend $?
29
	eend $?
30
}
30
}
31
32
rotate() {
33
	ebegin "Reopening ${RC_SVCNAME} log file"
34
	kill -USR2 $(cat "${pidfile}")
35
	eend $?
36
}
(-)a/net-dns/dnsmasq/files/dnsmasq-init-r2 (-1 / +7 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License, v2 or later
3
# Distributed under the terms of the GNU General Public License, v2 or later
4
# $Id$
4
# $Id$
5
5
6
extra_started_commands="reload"
6
extra_started_commands="reload rotate"
7
7
8
pidfile="/var/run/dnsmasq.pid"
8
pidfile="/var/run/dnsmasq.pid"
9
command="/usr/sbin/dnsmasq"
9
command="/usr/sbin/dnsmasq"
Lines 22-24 reload() { Link Here
22
	kill -HUP $(cat "${pidfile}")
22
	kill -HUP $(cat "${pidfile}")
23
	eend $?
23
	eend $?
24
}
24
}
25
26
rotate() {
27
	ebegin "Reopening ${RC_SVCNAME} log file"
28
	kill -USR2 $(cat "${pidfile}")
29
	eend $?
30
}

Return to bug 586454