diandianrong 发表于 2007-07-19 15:07

禁用autoshutdown

今天在E450上装Solaris 9 9/05时,安装完第一张盘,重启后提示我是否配置电源管理,让机器在空闲30分钟后自动关机.我选择n.如果你这里不小心选择了yes,其实还是有机会把这个自动关机去掉的。
vi /etc/power.conf

# Copyright (c) 1996 - 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#pragma ident   "@(#)power.conf 1.16    01/03/19 SMI"
#
# 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   10   Dec 20 ?      0:00 /usr/lib/power/powerd
root114011110 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   3740 01:55:13 pts/1    0:00 grep powe
#


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26090/showart_342928.html
页: [1]
查看完整版本: 禁用autoshutdown