脚本执行后,除了内核后台程序和init外都将关闭。登陆程序将开启,su:S1:respawn:/sbin/sulogin指定的功能。只有root用户才能用系统。
--------------------------------/etc/rc.d/rc.1------------------------------- #!/bin/sh # 卸载远程文件系统 echo "Unmounting remote filesystems..." /bin/umount -a -tnfs #下面两个信号后,除了内核后台程序和init外都将关闭。 echo "Sending all processes the TERM signal..." /sbin/killall5 -15 sleep 1 echo "Sending all processes the KILL signal..." /sbin/killall5 -9 ----------------------------end of /etc/rc.d/rc.1----------------------------