Suse Linux 下的 chkconfig

chkconfig - enable or disable system services

在网上搜索发现好多人都说suse linux的chkconfig无法指定服务的启动顺序,其实不然。

参照/etc/init.d/下的服务程序,可通过服务程序的注释来设置
如xntpd:

### BEGIN INIT INFO
# Provides: xntpd ntpd
# Required-Start: $remote_fs $syslog $named
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start network time protocol daemon (NTPD).
### END INIT INFO

通过设置Required-Start:来设置在指定服务启动后启动。