All pastes #2845520 Raw Edit

Gentoo dnsmasq init script

public unlisted shellscript v1 · immutable
#2845520 ·published 2014-09-23 03:56 UTC
rendered paste body
#!/sbin/runscript# Copyright 1999-2012 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-r2,v 1.2 2012/10/02 02:36:14 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}reload() {        ebegin "Reloading ${SVCNAME}"        kill -HUP $(cat "${pidfile}")        eend $?}