Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#26515 - [dnsmasq] rc.d bad output
Attached to Project:
Arch Linux
Opened by Sébastien Luttringer (seblu) - Wednesday, 19 October 2011, 02:14 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 19 October 2011, 16:22 GMT
Opened by Sébastien Luttringer (seblu) - Wednesday, 19 October 2011, 02:14 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 19 October 2011, 16:22 GMT
|
Detailsdnsmasq rc.d start script seems a little bugged because it call dnsmasq --test which writes text on stderr.
I see 3 issues: 1- stderr should be reserved for errors and there is no errors 2- starting dnsmasq in background will display the sytax check OK somewhere because stderr is no redirected to /dev/null 3- starting dnsmasq in foregroup will have a bad display like the following # /etc/rc.d/dnsmasq start :: Starting DNS/DHCP daemon [BUSY] dnsmasq: syntax check OK. [DONE] A trivial fix would be: --- /etc/rc.d/dnsmasq 2011-09-11 18:04:31.000000000 +0200 +++ dnsmasq 2011-10-19 04:14:02.230296435 +0200 @@ -17,7 +17,7 @@ case $1 in start) stat_busy "Starting DNS/DHCP daemon" - if [[ -z $PID ]] && /usr/sbin/dnsmasq --test && + if [[ -z $PID ]] && /usr/sbin/dnsmasq --test &>/dev/null && /usr/sbin/dnsmasq "--user=${DNSMASQ_USER:-nobody}" \ "--pid-file=$pidfile" \ "${DNSMASQ_OPTS[@]}"; then |
This task depends upon
Closed by Dave Reisner (falconindy)
Wednesday, 19 October 2011, 16:22 GMT
Reason for closing: Fixed
Additional comments about closing: extra/dnsmasq 2.59-2
Wednesday, 19 October 2011, 16:22 GMT
Reason for closing: Fixed
Additional comments about closing: extra/dnsmasq 2.59-2
my patch was trivial, but we can also only print output of "dnsmasq --test" when return code != 0. Which restore the half of the missing purpose.
In other hand, if starting fail, users will do an /etc/rc.d/dnsmasq checkconfig to see what's wrong.
I attached a new patch