diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 09:12:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-19 09:14:19 +0000 |
commit | 1e466a24c57acb162cbc1743a54d25def47c26c2 (patch) | |
tree | a3051cd30cbe024c2fd1f9e5095d817b8ab46323 /main/dnsmasq/dnsmasq.initd | |
parent | cfed76043a5f2cfbf62850c68ec439257d4a8c59 (diff) | |
download | aports-1e466a24c57acb162cbc1743a54d25def47c26c2.tar.bz2 aports-1e466a24c57acb162cbc1743a54d25def47c26c2.tar.xz |
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
Diffstat (limited to 'main/dnsmasq/dnsmasq.initd')
-rw-r--r-- | main/dnsmasq/dnsmasq.initd | 13 |
1 files changed, 5 insertions, 8 deletions
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 $? |