ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Sergey Y. Afonin" <asy@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] apcupsd, incoming и /etc/init.d/halt
Date: Wed, 13 Apr 2005 20:20:30 +0500
Message-ID: <200504132020.30611.asy@altlinux.ru> (raw)

Привет.

Пытаюсь положить в incoming apcupsd-3.10.17-alt1. И, что-то, не 
особо выходит. sisyphus_check ругается:

forbidden requires: /etc/rc.d/init.d(daemon) /etc/rc.d/init.d(killproc)

Пока никак не пойму, откуда такие зависимости берутся... :-(

А пока разбирался, посмотрел в halt и подозрительным показалось одно место:

=======
[ -f /proc/bus/usb/devices ] && umount -n /proc/bus/usb >/dev/null 2>&1

<skip>

# See if this is a powerfail situation.
UPSCTL=/etc/apcupsd/apccontrol
if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then
        action "Attempting to turn the UPS off:" "$UPSCTL" killpower
        message="The system is halted"
        command=/sbin/poweroff
fi

UPSCTL=/sbin/upsdrvctl
if [ -x "$UPSCTL" -a -f /etc/killpower ]; then
        action "Attempting to turn the UPS off:" "$UPSCTL" shutdown
        message="The system is halted"
        command=/sbin/poweroff
fi
=======

Я правильно понимаю, что после umount -n /proc/bus/usb /dev/usb идет
лесом и USB UPS уже не получит команду ?

-- 
С уважением, Сергей Афонин
asy@altlinux.ru


             reply	other threads:[~2005-04-13 15:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-13 15:20 Sergey Y. Afonin [this message]
2005-04-13 15:35 ` [devel] " Michael Shigorin
2005-04-13 15:51   ` Sergey Y. Afonin
2005-04-13 16:01     ` Sergey Y. Afonin
2005-04-13 17:05     ` Dmitry V. Levin
2005-04-14  8:25       ` [devel] [JT] " Michael Shigorin
2005-04-14  8:46       ` [devel] " Sergey Y. Afonin
2005-04-14  8:53         ` Nick S. Grechukh
2005-04-14 11:34           ` Sergey Y. Afonin
2005-04-14 11:44             ` Sergey Y. Afonin
2005-04-14 12:35             ` Dmitry V. Levin
2005-04-14 13:18               ` Sergey Y. Afonin
2005-04-14 13:28                 ` Dmitry V. Levin
2005-04-14 14:08                   ` Sergey Y. Afonin
2005-04-14 14:16                     ` Dmitry V. Levin
2005-04-14 16:43                       ` Sergey Y. Afonin
2005-04-14 17:10                         ` Sergey Y. Afonin
2005-04-20 11:12                           ` Dmitry V. Levin
2005-04-20 16:03                             ` Sergey Y. Afonin
2005-04-21 10:16                               ` Sergey Y. Afonin
2005-04-20 10:40                         ` Sergey Y. Afonin

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=200504132020.30611.asy@altlinux.ru \
    --to=asy@altlinux.ru \
    --cc=devel@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 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