今天在E450上裝Solaris 9 9/05時,安裝完第一張盤,重啟後提示我是否配置電源管理,讓機器在空閒30分鐘後自動關機.我選擇n.如果你這裡不小心選擇了yes,其實還是有機會把這個自動關機去掉的。
# Copyright (c) 1996 - 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#
# Power Management Configuration File
#
# This entry keeps removable media from being powered down unless the
# console framebuffer and monitor are powered down
# (See removable-media(9P))
device-dependency-property removable-media /dev/fb
autopm default
statefile //.CPR
# Auto-Shutdown Idle(min) Start/Finish(hh:mm) Behavior
autoshutdown 30 9:00 9:00 noshutdown
change
autoshutdown 30 9:00 9:00 shutdown
to
autoshutdown 30 9:00 9:00 noshutdown
補充:
Probably a better way to deal with this is to simply disable the service completely:
# mv /etc/rc2.d/S85power /etc/rc2.d/s85power
Let's see what is running:
# ps -ef | grep powe
root 246 1 0 Dec 20 ? 0:00 /usr/lib/power/powerd
root 1140 1111 0 01:46:05 pts/1 0:00 grep powe
#
Let's reboot, and make sure our system doesn't start the service again:
# ps -ef | grep powe
root 376 374 0 01:55:13 pts/1 0:00 grep powe
#