ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Yura Kalinichenko <yuk@kalina.in.ua>
To: shigorin@gmail.com,
	 ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] I: nut-2.6.0, please test/help
Date: Sun, 20 Feb 2011 11:45:34 +0200
Message-ID: <4D60E2BE.8070700@kalina.in.ua> (raw)
In-Reply-To: <20110219215431.GN29746@osdn.org.ua>

Michael Shigorin пишет:
> 	Здравствуйте.
> Пилю тут урывками свежий nut, 
Аналогично. Что радует - оно уже таки нормально конфигурится под ALT >=4.
> - без указания опции "-4" upsd/upsdrvctl не стартуют при
>   отсутствии ipv6, поскольку надо там аж 127.0.0.1 --
>   воткнуто по умолчанию в /etc/sysconfig/upsd, спросил апстрим
Я посмотрел как оно было сделано в 2.2.2 и повторил, вряд ли правильно - 
но "чтоб работало". По крайней мере upsd поднялся.

diff -U 2 -r nut-2.6.0.orig/server/upsd.c nut-2.6.0/server/upsd.c
--- nut-2.6.0.orig/server/upsd.c        2010-12-24 15:24:12 +0200
+++ nut-2.6.0/server/upsd.c     2011-02-12 12:58:33 +0200
@@ -546,10 +546,11 @@
        /* default behaviour if no LISTEN addres has been specified */
        if (!firstaddr) {
-               if (opt_af != AF_INET) {
-                       listen_add("::1", string_const(PORT));
-               }

-               if (opt_af != AF_INET6) {
+               if (opt_af == AF_INET6) {
+                       listen_add("::1", string_const(PORT));
+               } else if (opt_af == AF_INET) {
                        listen_add("127.0.0.1", string_const(PORT));
+               } else {
+                       listen_add("0.0.0.0", string_const(PORT));
                }
        }




-- 
SY, 
   Yura Kalinichenko



  reply	other threads:[~2011-02-20  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-19 21:54 Michael Shigorin
2011-02-20  9:45 ` Yura Kalinichenko [this message]
2011-02-20 12:48   ` Sergey Vlasov
2011-02-20 19:24     ` Yura Kalinichenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D60E2BE.8070700@kalina.in.ua \
    --to=yuk@kalina.in.ua \
    --cc=shigorin@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git