suse chkconfig通過服務(wù)程序注釋啟動(dòng)順序
作者:佚名
在網(wǎng)上搜索發(fā)現(xiàn)好多人都說suse linux的suse chkconfig無法指定服務(wù)的啟動(dòng)順序,其實(shí)不然。參照/etc/init.d/下的服務(wù)程序,可通過服務(wù)程序的注釋來設(shè)置
在網(wǎng)上搜索發(fā)現(xiàn)好多人都說suse linux的suse chkconfig無法指定服務(wù)的啟動(dòng)順序,其實(shí)不然。參照/etc/init.d/下的服務(wù)程序,可通過服務(wù)程序的注釋來設(shè)置。
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
通過設(shè)置Required-Start:suse chkconfig來設(shè)置在指定服務(wù)啟動(dòng)后啟動(dòng)。
責(zé)任編輯:chenqingxiang
來源:
百度