ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Sergey Y. Afonin" <asy@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] apcupsd и killpower (+ #6514 или init.d/halt, libnetsnmp)
Date: Tue, 3 Jun 2008 21:08:42 +0500
Message-ID: <200806032108.42810.asy@altlinux.ru> (raw)
In-Reply-To: <200806021750.49376.asy@altlinux.ru>

On Monday 02 June 2008, Sergey Y. Afonin wrote:

>  Соответственно, надо killpower слать в начале, как я и думал в #6514#c5.

В Sisyphus ушёл apcupsd с такими изменениями:

- fixed in init script:
   killpower is applied at "service stop" if shutdown initiated by power 
   failure (sometime it is impossible when file systems unmounted)
   script is called before network stop when shutdown (communications
   with UPS can be established via snmp)

Сейчас подумал, что зря не дописал, что только для Smart UPS (в принципе, 
настраивается в /etc/apcupsd/get_killpower_delay). По-умолчанию, у смартов
задержка 20 секунд. Если сетевых интерфейсов не много, и не подмотировано 
что-то сетевое, которое отвалилось, то от момента подачи killpower, вроде бы,
20 секунд должно бы хватать.

Но есть ещё варианты. Можно или libnetsnmp перенести в /lib, или сделать
статическую сборку apcupsd, а в service stop проверять только на работу 
по snmp. У кого какое мнение ?

-- 
С уважением, Сергей Афонин


      reply	other threads:[~2008-06-03 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02 12:50 Sergey Y. Afonin
2008-06-03 16:08 ` Sergey Y. Afonin [this message]

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=200806032108.42810.asy@altlinux.ru \
    --to=asy@altlinux.ru \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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