2008/05/08
2008/05/07
2008/05/03
2008/05/02
2008/05/01
2008/04/28
apcupsdでUPS本体の電源をOFFにする
KILLDELAYを有効にするためには、/etc/init.d/apcupsdのstart)内のstartproc $APCUPSD の引数に-pが必要。(設定後は/sbin/service/apcupsd restart)
・
・
・
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
if ! grep -q '^NOLOGON[[:space:]][[:space:]]*disable' /etc/apcupsd/apcup sd.conf ; then
rm -f /etc/nologin
fi
echo -n "Starting apcupsd power management"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
# startproc should return 0, even if service is
# already running to match LSB spec.
startproc $APCUPSD -p
# Remember status and be verbose
rc_status -v
;;
stop)
・
・
・
検証OS:SLES10.1
バージョン:apcupsd release 3.12.1
Apcupsd, a daemon for controlling APC UPSes
・
・
・
case "$1" in
start)
rm -f /etc/apcupsd/powerfail
if ! grep -q '^NOLOGON[[:space:]][[:space:]]*disable' /etc/apcupsd/apcup sd.conf ; then
rm -f /etc/nologin
fi
echo -n "Starting apcupsd power management"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
# startproc should return 0, even if service is
# already running to match LSB spec.
startproc $APCUPSD -p
# Remember status and be verbose
rc_status -v
;;
stop)
・
・
・
検証OS:SLES10.1
バージョン:apcupsd release 3.12.1
Apcupsd, a daemon for controlling APC UPSes
登録:
投稿 (Atom)