[yocto] dnsmasq init script typo
Mircea Gliga
mircea.gliga at vitheia.com
Fri Sep 8 00:47:42 PDT 2017
Hi
I think there is a problem in the dnsmasq init script related to the pidfile
|
test -z"${PIDFILE}" && PIFILE="/run/dnsmasq.pid"
|
The script defines a variable PIFILE, notice the missing "D" from PID.
And then it doesn't use that variable anymore.
It only uses the PIDFILE one.
So, if you run /etc/init.d/dnsmasq status you get in trouble because of
this line:
|
PID=`cat${PIDFILE}`
|
Also the script doesn't handle the situation when the the pidfile is
also specified in the dnsmasq.conf file - the daemon creates the pidfile
in the location specified in the dnsmaq.conf file.
But, this is done for the `no-resolv` entry in the conf file.
This is the script in question:
http://cgit.openembedded.org/meta-openembedded/tree/meta-networking/recipes-support/dnsmasq/files/init?h=krogoth#n19
Best regards
Mircea
||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170908/a0a7d7ec/attachment.html>
More information about the yocto
mailing list