vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| In article <slrnbpiebv.1qd.aku@darkstar.example.net>, aku wrote: (Hmmm, darkstar.example.net, that hostname sounds familiar! > Came across this: http://linuxdevices.com/articles/AT7...html#resources > It's tailored to redhat, but the idea is applicable to all distro's. > In essence: use 'make -j' to start rc scripts in parallel and thereby > potentially speed up the boot process. I saw that and worked on a bash-centric way to start a limited number of processes in parallel. In news://comp.unix.shell I posted these: Message-Id: <slrnbodt4q.58d.rob0@ns.linux.box> Message-Id: <slrnboec76.b41.rob0@ns.linux.box> They're in the same thread. The latter contains the code which was tested and proven to work, except for a potentially serious bug in the next-to-last line: "rm $FILE" should be commented, because once the loop completes, all pending jobs will be started if $FILE isn't there. If limiting is not needed, as I suspect may be the case with startup scripts, why not just start them in the background with "&"? The "make" idea seems unnecessarily complex to me (but then again I should aver that I didn't read it well enough for it all to sink in.) The ones which must be completed first, such as rc.modules and rc.inet1 could be run in the foreground, then all others in the background. ISTM that booting speed is of little consequence, since I do it only when forced (power outages usually.) YMMV. -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |