Code Listing 4.4: Running an init script as first script in the runlevel |
depend() { before * } |
If your service must write to local disks, it should need localmount. If it places anything in /var/run such as a pidfile, then it should start after bootmisc:
Code Listing 4.5: Example depend() function |
depend() { need localmount after bootmisc } 编辑nano -w /etc/init.d/net.eth0 找到need localmount将其注视掉即可 |