[求助]刚做了件蠢事,把两个系统文件删了,急来求救

为当前最终发行版之前的所有版本提供支持
回复
tbpgffhv
帖子: 1
注册时间: 2007-03-21 0:53
送出感谢: 0
接收感谢: 0

[求助]刚做了件蠢事,把两个系统文件删了,急来求救

#1

帖子 tbpgffhv » 2007-03-21 0:58

/etc/init.d/rcS和/etc/event.d/rcS
不知哪位好心人肯把文件贴出来给我做参考,小的不胜感激
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 hualang0929 » 2007-03-21 13:41

代码: 全选

hualang@~$ cat /etc/init.d/rcS
#! /bin/sh
#
# rcS
#
# Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
#

exec /etc/init.d/rc S
hualang@~$ cat /etc/event.d/rcS
# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.

start on startup

stop on shutdown
stop on runlevel-2
stop on runlevel-3
stop on runlevel-4
stop on runlevel-5

# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance).  Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
script
        runlevel --set S >/dev/null || true
        exec /etc/init.d/rcS
end script
抬头望星空一片晴,我独行,夜已渐寒……
回复

回到 “老旧版本支持”