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 |
} |