ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Grigory Batalov <grisxa@mail.ru>
To: community@altlinux.ru
Subject: [Comm] nut and UPS shutdown
Date: Fri, 25 Jul 2003 12:02:57 +0400
Message-ID: <20030725120257.399461ba.grisxa@mail.ru> (raw)

Здравствуйте!

В документации к NUT рекомендуется прописать в shutdown-скрипт
строки типа:

   if (test -f /etc/killpower)
   then
      echo "Killing the power, bye!"
      /usr/local/ups/bin/upsdrvctl shutdown
   fi

Поскольку у нас shutdown - не скрипт, то совершенно непонятно,
куда их вписывать. Кто как поступает?

P.S. 'upsdrvctl shutdown' инициирует выключение UPS
     (и нагрузки, соответственно) при невозможности
     дальнейшей работы от батарей.

-- 
Григорий Баталов,
группа техподдержки
ОАО "Ковдорский ГОК"


             reply	other threads:[~2003-07-25  8:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25  8:02 Grigory Batalov [this message]
2003-07-25  9:29 ` Alexey Borovskoy
2003-07-28  7:15   ` Grigory Batalov
2003-07-28  8:15     ` Alexey Borovskoy
2003-07-28  8:17     ` Sergey Bolshakov
2003-07-29 11:16       ` Grigory Batalov
2003-07-30  6:18       ` Grigory Batalov

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=20030725120257.399461ba.grisxa@mail.ru \
    --to=grisxa@mail.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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