2008/04/28

Memo of the SSH

rootでのログインを許可しない。
/etc/ssh/sshd_config
PermitRootLogin no

Memo of the SSH

APCUPSD - 電源管理(APC)

ここに書いてあった。
APCUPSD - 電源管理(APC): "KILLDELAY"

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

2008/04/24

SLES10.1でmondo rescue

SLES10.1ではデフォルトでby-idが有効になっているので、mondoで復旧できない。
SLES10.1インストール時にパーティション設定のfstabオプションで、デバイス名を指定すると復旧できる。

TroubleShooting - MondoRescue - Trac

2008/04/09