不知道对不对? ============================================ 参考:http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-boot-init-shutdown-process.html ........ 1.2.4. The /sbin/init Program When the init command starts, it becomes the parent or grandparent of all of the processes that start up automatically on a Red Hat Linux system. First, it runs the /etc/rc.d/rc.sysinit script, which sets the environment path, starts swap, checks the file systems, and takes care of everything the system needs to have done at system initialization. For example, most systems use a clock, so on them rc.sysinit reads the /etc/sysconfig/clock configuration file to initialize the hardware clock. Another example is if there are special serial port processes which must be initialized, rc.sysinit will execute the /etc/rc.serial file.
发布评论
评论(4)
哦,是这样啊,明白!
那么就放在 /etc/rc.d/rc.local
谢谢楼上的大哥。
我的意思是这样的:
自己做了一个脚本,然后想在机器启动时把该服务自动起来,就像默认的sendmail一样每次机器启动时该服务就起来。
应该是/etc/rc.d/rc.local么?
不过,看看你的“随机器”启动,不太明白,所以可能是:/etc/rc.d/rc.sysinit?
不知道对不对?
============================================
参考:http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-boot-init-shutdown-process.html
........
1.2.4. The /sbin/init Program
When the init command starts, it becomes the parent or grandparent of all of the processes that start up automatically on a Red Hat Linux system. First, it runs the /etc/rc.d/rc.sysinit script, which sets the environment path, starts swap, checks the file systems, and takes care of everything the system needs to have done at system initialization. For example, most systems use a clock, so on them rc.sysinit reads the /etc/sysconfig/clock configuration file to initialize the hardware clock. Another example is if there are special serial port processes which must be initialized, rc.sysinit will execute the /etc/rc.serial file.
............
希望有用。