chutzpah    14/10/07 01:01:47

  Added:                dnsmasq-init-dhcp-r1
  Log:
  Version bump, move leases file creation to init script (bug #524036). Add 
code to try to prevent leases file from being removed by portage.
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with 
key 0xE3F69979BB4B8928DA78E3D17CBF44EF)

Revision  Changes    Path
1.1                  net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1?rev=1.1&content-type=text/plain

Index: dnsmasq-init-dhcp-r1
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init-dhcp-r1,v 
1.1 2014/10/07 01:01:47 chutzpah Exp $

extra_started_commands="reload"

pidfile="/var/run/dnsmasq.pid"
command="/usr/sbin/dnsmasq"
command_args="-x ${pidfile} ${DNSMASQ_OPTS}"
start_stop_daemon_args="--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}"
        kill -HUP $(cat "${pidfile}")
        eend $?
}




Reply via email to