LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1950|回复: 8

如何关闭系统关机(重启)信息广播?

[复制链接]
发表于 2005-6-20 17:14:37 | 显示全部楼层 |阅读模式
如何关闭系统关机(重启)信息广播?
或者修改它的信息?
发表于 2005-6-20 20:07:00 | 显示全部楼层
UNIX 系统被定义为是一个多用户的系统,如果你关机或者是重新启动,需要让别的用户做好准备,所以我觉得没有必要取消 WALL
回复 支持 反对

使用道具 举报

发表于 2005-6-20 20:26:11 | 显示全部楼层

/etc/inittab

powerfail
powerokwalk
那兩行的提示...

不過K6說的對...不支持這樣..
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 21:25:49 | 显示全部楼层
是有需要才作这种动作萨.
谢谢二位了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-20 21:27:40 | 显示全部楼层
不过我的inittab内容里没有找到欧

  1. #
  2. # inittab       This file describes how the INIT process should set up
  3. #               the system in a certain run-level.
  4. #
  5. # Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
  6. #               Modified for RHS Linux by Marc Ewing and Donnie Barnes
  7. #

  8. # Default runlevel. The runlevels used by RHS are:
  9. #   0 - halt (Do NOT set initdefault to this)
  10. #   1 - Single user mode
  11. #   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
  12. #   3 - Full multiuser mode
  13. #   4 - unused
  14. #   5 - X11
  15. #   6 - reboot (Do NOT set initdefault to this)
  16. #
  17. id:5:initdefault:

  18. # System initialization.
  19. si::sysinit:/etc/rc.d/rc.sysinit

  20. l0:0:wait:/etc/rc.d/rc 0
  21. l1:1:wait:/etc/rc.d/rc 1
  22. l2:2:wait:/etc/rc.d/rc 2
  23. l3:3:wait:/etc/rc.d/rc 3
  24. l4:4:wait:/etc/rc.d/rc 4
  25. l5:5:wait:/etc/rc.d/rc 5
  26. l6:6:wait:/etc/rc.d/rc 6

  27. # Trap CTRL-ALT-DELETE
  28. ca::ctrlaltdel:/sbin/shutdown -t3 -r now

  29. # When our UPS tells us power has failed, assume we have a few minutes
  30. # of power left.  Schedule a shutdown for 2 minutes from now.
  31. # This does, of course, assume you have powerd installed and your
  32. # UPS connected and working correctly.
  33. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

  34. # If power was restored before the shutdown kicked in, cancel it.
  35. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


  36. # Run gettys in standard runlevels
  37. 1:2345:respawn:/sbin/mingetty tty1
  38. 2:2345:respawn:/sbin/mingetty tty2
  39. 3:2345:respawn:/sbin/mingetty tty3
  40. 4:2345:respawn:/sbin/mingetty tty4
  41. 5:2345:respawn:/sbin/mingetty tty5
  42. 6:2345:respawn:/sbin/mingetty tty6

  43. # Run xdm in runlevel 5
  44. x:5:once:/etc/X11/prefdm -nodaemon
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-20 21:52:32 | 显示全部楼层
/powerfail

is /powerokwait not /poweronwalk

哈哈, 正好發現我也敲錯了...

N次修改了...
今天我不在状态...想某某了..哈哈...

你可以查找一下的啊..
回复 支持 反对

使用道具 举报

发表于 2005-6-20 22:07:17 | 显示全部楼层
这个,似乎,没办法,,,除非改动shutdown程序。。
回复 支持 反对

使用道具 举报

发表于 2005-6-21 09:48:15 | 显示全部楼层
嚴重支持版主........

哈哈.


建議做重啟前可以把other user 殺掉..

就不會有?V播提示了吧..


(昨天就發現,我回?筒辉敿毧梢哉f錯誤就補貼?許版主,今天發現不知什麽原因竟沒有
發上去, 由於良心發現,在補一遍)
回复 支持 反对

使用道具 举报

发表于 2005-6-21 09:50:11 | 显示全部楼层
嚴重支持版主........

哈哈.


因为我把wall 改掉也不可以..
還有/etc/inittab或者shutdown 命令本身都只可以加上相應提示僅止而已...
而沒有去掉....固有的兩行...

建議做重啟前可以把other user 殺掉..

就不會有?V播提示了吧..


(昨天就發現,我回?筒辉敿毧梢哉f錯誤就補貼?許版主,今天發現不知什麽原因竟沒有
發上去, 由於良心發現,在補一遍)

今天网速慢,请版主将此贴上面一遍相近删除掉.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表