You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r3

36 lines
721 B

#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
extra_started_commands="reload rotate"
pidfile="/var/run/dnsmasq.pid"
command="/usr/sbin/dnsmasq"
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
retry="TERM/3/TERM/5"
depend() {
provide dns
need localmount net
after bootmisc
use logger
}
start_pre() {
checkpath --owner dnsmasq:dnsmasq \
--mode 0644 \
--file /var/lib/misc/dnsmasq.leases
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
rotate() {
ebegin "Reopening ${RC_SVCNAME} log file"
start-stop-daemon --signal USR2 --pidfile "${pidfile}"
eend $?
}