ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] apcupsd, incoming и /etc/init.d/halt
@ 2005-04-13 15:20 Sergey Y. Afonin
  2005-04-13 15:35 ` [devel] " Michael Shigorin
  0 siblings, 1 reply; 21+ messages in thread
From: Sergey Y. Afonin @ 2005-04-13 15:20 UTC (permalink / raw)
  To: devel

Привет.

Пытаюсь положить в 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


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-04-21 10:16 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 15:20 [devel] apcupsd, incoming и /etc/init.d/halt Sergey Y. Afonin
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

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