From: Andrew Grechko <a_gr@mail.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] /etc/init.d/apcupsd & /etc/init.d/halt fix
Date: Sat May 5 22:53:01 2001
Message-ID: <01050522570500.05391@localhost.localdomain> (raw)
In-Reply-To: <20010505184513.A8720@ldv.office.alt-linux.org>
5 Май 2001 18:45, Вы написали:
> On Sat, May 05, 2001 at 05:35:13PM +0400, Andrew Grechko wrote:
> > subj, или SmartUPS & apcupsd sucess story :)
> >
>
> Пакет apcupsd был собран для Spring и тестировался со SmartUPS 420.
> Никаких "напильников" для приведения apcupsd в рабочее состояние не
> требуется, достаточно проверить /etc/apcupsd/*.conf на предмет
> соответствия установок по умолчанию конфигурации Вашего оборудования,
> сети, etc.
К сожалению, со Spring я проверить не могу - UPS стоит в другом месте.
Просто пока разбирался со своей проблемой, заметил следующее:
/etc/init.d/apcupsd
----------------------------
start()
{
rm -f /etc/apcupsd/powerfail /etc/nologin
^^^^^^^^^^^^^^^^^^^^^
echo -n "Starting UPS monitoring: "
daemon /usr/sbin/apcupsd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch "$LOCKFILE"
}
----------------------------
/etc/init.d/halt
----------------------------
# See if this is a powerfail situation.
UPSCTL=/etc/apcupsd/apccontrol
if [ -x "$UPSCTL" -a -f /etc/powerfail ]; then
^^^^^^^^^^^^
echo "APCUPSD will now power off the UPS!"
echo
"$UPSCTL" killpower
echo
echo "Please ensure that the UPS has powered off before rebooting"
echo "Otherwise, the UPS may cut the power during the reboot!!!"
echo
sleep 120
exit 1
fi
----------------------------
apcupsd-3.8.1-ipl1mdk
initscripts-5.49-ipl13mdk
Охотно верю, что работе с UPS это не мешает, если apcupsd создает powerfail в
/etc, в противном случае мне непонятно откуда выдается команда apccontrol
killpower. Какое отношение имеют настройки в /etc/apcupsd/*.conf к этой
команде я тоже не понял. Разумеется, это моя проблема, никто не мешает
посмотреть все детально. Просто, как мне казалось, я нашел ошибку в скриптах
и решил об этом сообщить. Но раз Вы говорите, что все работает...
>
> Мне не известно, что необходимо для запуска apcupsd в среде 7.0RE.
для запуска - просто собрать из src.rpm от Spring.
>
>
> Regards,
> Dmitry
>
> +-------------------------------------------------------------------------+
> Dmitry V. Levin mailto://ldv@alt-linux.org
> ALT Linux Team http://www.altlinux.ru/
> Fandra Project http://www.fandra.org/
> +-------------------------------------------------------------------------+
> UNIX is user friendly. It's just very selective about who its friends are.
----------------------------------------
Content-Type: application/pgp-signature; charset="koi8-r"; name="Подцепление:
1"
Content-Transfer-Encoding: 7bit
Content-Description:
----------------------------------------
--
With best regards,
Andrew Grechko
2:5030/774.6
next prev parent reply other threads:[~2001-05-05 22:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-05 17:43 Andrew Grechko
2001-05-05 18:38 ` Dmitry V. Levin
2001-05-05 22:53 ` Andrew Grechko [this message]
2001-05-06 12:31 ` Dmitry V. Levin
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=01050522570500.05391@localhost.localdomain \
--to=a_gr@mail.ru \
--cc=mandrake-russian@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