这篇文章给大家介绍suse chkconfig通过服务程序注释启动顺序是怎样的,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
在网上搜索发现好多人都说suse linux的suse chkconfig无法指定服务的启动顺序,其实不然。参照/etc/init.d/下的服务程序,可通过服务程序的注释来设置。
suse chkconfig举例说明如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:suse chkconfig来设置在指定服务启动后启动。
大型站长资讯类网站! https://www.0833zz.com