<div dir="ltr">A friend of mine is having trouble with 2.45, previously had 2.27 installed. When it launches from /etc/init.d/dnsmasq, it reports:<br>Shutting down dnsmasq: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ &nbsp;OK &nbsp;]<br>
Starting dnsmasq:<br>
dnsmasq: bad command line options: illegal repeated flag<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[FAILED]<br>
    <br>The script with the options is below. Has anybody seen this error? Looking at the script, I don&#39;t see any flag repeating.<br><br>&nbsp; Aaron<br><br><div class="gmail_quote"><div bgcolor="#ffffff" text="#000000">
% cat dnsmasq<br>
#!/bin/sh<br>
#<br>
# Startup script for the DNS caching server<br>
#<br>
# chkconfig: 2345 99 01<br>
# description: This script starts your DNS caching server<br>
# processname: dnsmasq<br>
# pidfile: /var/run/dnsmasq.pid<br>
<br>
# Source function library.<br>
. /etc/rc.d/init.d/functions<br>
<br>
# Source networking configuration.<br>
. /etc/sysconfig/network<br>
<br>
# Check that networking is up.<br>
[ ${NETWORKING} = &quot;no&quot; ] &amp;&amp; exit 0<br>
<br>
dnsmasq=/usr/local/sbin/dnsmasq<br>
[ -f $dnsmasq ] || exit 0<br>
<br>
# change this line if you want dnsmasq to serve an MX record for<br>
# the host it is running on.<br>
MAILHOSTNAME=&quot;&quot;<br>
# change this line if you want dns to get its upstream servers from<br>
# somewhere other that /etc/resolv.conf<br>
RESOLV_CONF=&quot;&quot;<br>
# change this if you want dnsmasq to cache any &quot;hostname&quot; or
&quot;client-hostname&quot; from<br>
# a dhcpd&#39;s lease file<br>
DHCP_LEASE=&quot;/var/lib/dhcp/dhcpd.leases&quot;<br>
DOMAIN_SUFFIX=`dnsdomainname`<br>
<br>
OPTIONS=&quot;--domain=middleearth --expand-hosts&quot;<br>
<br>
if [ ! -z &quot;${MAILHOSTNAME}&quot; ]; then<br>
&nbsp; OPTIONS=&quot;$OPTIONS -m $MAILHOSTNAME&quot;<br>
fi<br>
<br>
if [ ! -z &quot;${RESOLV_CONF}&quot; ]; then<br>
&nbsp; OPTIONS=&quot;$OPTIONS -r $RESOLV_CONF&quot;<br>
fi<br>
<br>
if [ ! -z &quot;${DHCP_LEASE}&quot; ]; then<br>
&nbsp; OPTIONS=&quot;$OPTIONS -l $DHCP_LEASE&quot;<br>
fi<br>
<br>
if [ ! -z &quot;${DOMAIN_SUFFIX}&quot; ]; then<br>
&nbsp; OPTIONS=&quot;$OPTIONS -s $DOMAIN_SUFFIX&quot;<br>
fi<br>
<br>
RETVAL=0<br>
<br>
# See how we were called.<br>
case &quot;$1&quot; in<br>
&nbsp; start)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n &quot;Starting dnsmasq: &quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; daemon $dnsmasq $OPTIONS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ $RETVAL -eq 0 ] &amp;&amp; touch /var/lock/subsys/dnsmasq<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp; stop)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if test &quot;x`pidof dnsmasq`&quot; != x; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo -n &quot;Shutting down dnsmasq: &quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; killproc dnsmasq<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/dnsmasq
/var/run/dnsmasq.pid<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp; status)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status dnsmasq<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp; restart|reload)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 stop<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 start<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp; condrestart)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if test &quot;x`/sbin/pidof dnsmasq`&quot; != x; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 stop<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 start<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RETVAL=$?<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp; *)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Usage: $0 {start|stop|restart|reload|condrestart|status}&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 1<br>
esac<br>
<br>
exit $RETVAL<div><div></div><br></div></div></div><br></div>