fix dnsmasq.init bz 512664
This commit is contained in:
parent
fa07928015
commit
243a5a3627
16
dnsmasq.init
16
dnsmasq.init
@ -24,6 +24,10 @@ if [ ! -z "${DOMAIN_SUFFIX}" ]; then
|
|||||||
OPTIONS="-s $DOMAIN_SUFFIX"
|
OPTIONS="-s $DOMAIN_SUFFIX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pidfile=${PIDFILE-/var/run/dnsmasq.pid}
|
||||||
|
lockfile=${LOCKFILE-/var/lock/subsys/dnsmasq}
|
||||||
|
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
@ -33,16 +37,14 @@ case "$1" in
|
|||||||
daemon $dnsmasq $OPTIONS
|
daemon $dnsmasq $OPTIONS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
|
[ $RETVAL -eq 0 ] && touch ${lockfile}
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if test "x`pidof dnsmasq`" != x; then
|
echo -n "Shutting down dnsmasq: "
|
||||||
echo -n "Shutting down dnsmasq: "
|
killproc -p ${pidfile} ${dnsmasq}
|
||||||
killproc dnsmasq
|
|
||||||
fi
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
|
[ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status dnsmasq
|
status dnsmasq
|
||||||
@ -50,7 +52,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
echo -n "Reloading dnsmasq: "
|
echo -n "Reloading dnsmasq: "
|
||||||
killproc dnsmasq -HUP
|
killproc -p ${pidfile} ${dnsmasq} -HUP
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: dnsmasq
|
Name: dnsmasq
|
||||||
Version: 2.51
|
Version: 2.51
|
||||||
Release: 1%{?extraversion}%{?dist}
|
Release: 2%{?extraversion}%{?dist}
|
||||||
Summary: A lightweight DHCP/caching DNS server
|
Summary: A lightweight DHCP/caching DNS server
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -118,6 +118,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Nov 22 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.51-2
|
||||||
|
- fix bz 512664
|
||||||
|
|
||||||
* Sat Oct 17 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.51-1
|
* Sat Oct 17 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 2.51-1
|
||||||
- move initscript from patch to a plain text file
|
- move initscript from patch to a plain text file
|
||||||
- drop (dnsmasq-configuration.patch) and use sed instead
|
- drop (dnsmasq-configuration.patch) and use sed instead
|
||||||
|
Loading…
Reference in New Issue
Block a user