init script
时间:2007-03-08 来源:蜡笔pearly
At the process porting something SuSE specific from SuSE to RH, I found the init scripts format is very different between them. But this information is needed by yast. I will conclude some of them at the following.
- Init Infomation
The Default-Start and Default-Stop runlevel at SuSE is include between### BEGIN INIT INFO and ### END INIT INFO. It is # chkconfig: with three parameters: The default runlevels or a '-' as well as the start and stop priority levels at RH.
- Action
The action try-restart is to do a restart only if the service was active before at SuSE. try-restart is now part of LSB (as of 1.9). RH has a similar command named condrestart.
相关阅读 更多 +