分类: LINUX
2007-03-08 11:05:45
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.
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.
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.