From 1e466a24c57acb162cbc1743a54d25def47c26c2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 19 Jan 2012 09:12:57 +0000 Subject: main/dnsmasq: replace opts in init.d script and create user/group While we were here we create and enable the user "dnsmasq". ref #943 --- main/dnsmasq/dnsmasq.initd | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'main/dnsmasq/dnsmasq.initd') diff --git a/main/dnsmasq/dnsmasq.initd b/main/dnsmasq/dnsmasq.initd index 3f33d8986..52e21ba94 100644 --- a/main/dnsmasq/dnsmasq.initd +++ b/main/dnsmasq/dnsmasq.initd @@ -1,14 +1,15 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2011 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,v 1.13 2008/01/29 15:06:30 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init-r1,v 1.2 2011/12/04 10:28:47 swegener Exp $ -opts="reload" +extra_started_commands="reload" depend() { provide dns need localmount net - after bootmisc firewall + after bootmisc + use logger } start() { @@ -28,10 +29,6 @@ stop() { reload() { ebegin "Reloading ${SVCNAME}" - if ! service_started "${SVCNAME}" ; then - eend 1 "${SVCNAME} is not started" - return 1 - fi start-stop-daemon --stop --oknodo --signal HUP \ --exec /usr/sbin/dnsmasq --pidfile /var/run/dnsmasq.pid eend $? -- cgit v1.2.3