关机关的有点恐怖[已解决]

CPU/显卡/打印机/USB设备等硬件问题
头像
adqin
帖子: 1417
注册时间: 2007-01-24 22:07
来自: http://adqin.cn
联系:

#16

帖子 adqin » 2007-04-29 8:52

hehe,我的现在没有这个现象了。以前同样有,但我也从没在意过。随系统升级上去后,就自然好了。
mxch
帖子: 176
注册时间: 2005-09-23 20:37

#17

帖子 mxch » 2007-04-29 10:02

#! /bin/sh
### BEGIN INIT INFO
# Provides: halt
# Required-Start: umountroot
# Required-Stop:
# Should-Start: lvm raid2
# Should-Stop:
# Default-Start: 0
# Default-Stop:
# Short-Description: Execute the halt command.
# Description:
### END INIT INFO

PATH=/usr/sbin:/usr/bin:/sbin:/bin
[ -f /etc/default/halt ] && . /etc/default/halt

. /lib/lsb/init-functions

do_stop () {
if [ "$INIT_HALT" = "" ]
then
case "$HALT" in
[Pp]*)
INIT_HALT=POWEROFF
;;
[Hh]*)
INIT_HALT=HALT
;;
*)
INIT_HALT=POWEROFF
;;
esac
fi

# See if we need to cut the power.
if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ]
then
/etc/init.d/ups-monitor poweroff
fi

# Don't shut down drives if we're using RAID.
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi

# If INIT_HALT=HALT don't poweroff.
poweroff="-p"
if [ "$INIT_HALT" = "HALT" ]
then
poweroff=""
fi

log_action_msg "Will now halt"
sleep 1
halt -d -f -i $poweroff $hddown
}

case "$1" in
start)
# No-op
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
do_stop
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac

:


是改那一个
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#18

帖子 Beetle » 2007-04-29 10:28

代码: 全选

 log_action_msg "Will now halt"
sleep 30
halt -d -f -i $poweroff $hddown 
mxch
帖子: 176
注册时间: 2005-09-23 20:37

#19

帖子 mxch » 2007-04-29 15:54

好了谢谢
头像
Fly1945
帖子: 35
注册时间: 2006-09-19 16:38

#20

帖子 Fly1945 » 2007-05-10 12:13

我改了之后发现关机的速度慢了很多阿……
头像
qq52073344
帖子: 169
注册时间: 2006-12-07 6:38
联系:

#21

帖子 qq52073344 » 2007-05-12 11:46

我没改,只是关机到UBUNTU的LOGO的时候电脑就停了 他不动了 也不给关机 :cry: :cry: :cry: :cry:
weiqiang
帖子: 3
注册时间: 2007-05-14 17:54

#22

帖子 weiqiang » 2007-05-14 17:58

http://maweiqiang.blogspot.com/2007/05/ ... oblem.html
我是这么解觉的,参考了ubuntu的launchpad
redpacman
帖子: 14
注册时间: 2007-05-19 11:57

#23

帖子 redpacman » 2007-05-27 20:59

weiqiang 写了:http://maweiqiang.blogspot.com/2007/05/ ... oblem.html
我是这么解觉的,参考了ubuntu的launchpad
这种方法与前面一种有什么区别?
另外,我修改sleep数值到30,还是听见”咔“的一声,跟以前没有任何区别...
我的ubuntu是装在移动硬盘上
wwkzf
帖子: 5
注册时间: 2007-07-22 16:04

#24

帖子 wwkzf » 2007-07-22 17:12

呃,移动硬盘好像是只要usb口带电就转
liaxiz
帖子: 49
注册时间: 2007-05-26 23:57
联系:

#25

帖子 liaxiz » 2007-07-24 11:24

将内核升级到2.6.22即可解决,这是内核中的一个bug,在内核2.6.22中已经得到解决,经过测试,可行,楼主不妨试试
喜欢ubuntu
帖子: 131
注册时间: 2007-08-23 20:03
来自: 山西

#26

帖子 喜欢ubuntu » 2007-09-07 11:45

揪心的声音啊。改了也不行。重启时没有,就是关机时发出的声音和强行关机声音一样。郁闷。
头像
command
帖子: 306
注册时间: 2007-10-14 0:50
来自: GUCAS

#27

帖子 command » 2007-11-13 12:35

我的问题如下:
出现init:rc1 main process(6452) killed by TERM signal
然后让我输入root的密码,我进入root后,再次shutdown now,
又出现stopping system log daemon....fail
init:rc1 main process(6919) killed by TERM signal
然后让我在此输入roo的密码。。。。


一句话,shutdown now就是关不了机
回复