Linux Commands Examples

A great documentation place for Linux commands


start runlevel scripts in parallel


startpar [-p par] [-i iorate] [-t timeout] [-T global_timeout] [-a arg] prg1 prg2 ...
[-p par] [-i iorate] [-t timeout] [-T global_timeout] -M [ boot|start|stop]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


startpar is used to run multiple run-level scripts in parallel. The degree of parallelism on one CPU can be set with the -p option, the default is full parallelism. An argument to all of the scripts can be provided with the -a option. Processes block by pending I/O will weighting by the factor 800. To change this factor the option -i can be used to specify an other value.

The output of each script is buffered and written when the script exits, so output lines of different scripts won’t mix. You can modify this behaviour by setting a timeout.

The timeout set with the -t option is used as buffer timeout. If the output buffer of a script is not empty and the last output was timeout seconds ago, startpar will flush the buffer.

The -T option timeout works more globally. If no output is printed for more than global_timeout seconds, startpar will flush the buffer of the script with the oldest output. Afterwards it will only print output of this script until it is finished.

The -M option switches startpar into a make(1) like behaviour. This option takes three different arguments: boot, start, and stop for reading .depend.boot or .depend.start or .depend.stop respectively in the directory /etc/init.d/. By scanning the boot and runlevel directories in /etc/init.d/ it then executes the appropriate scripts in parallel.


2003,2004 SuSE Linux AG, Nuernberg, Germany.
2007 SuSE LINUX Products GmbH, Nuernberg, Germany.



see also

init.d, insserv, startproc.


Michael Schroeder <mls[:at:]suse[:dot:]de>
Takashi Iwai <tiwai[:at:]suse[:dot:]de>
Werner Fink <werner[:at:]suse[:dot:]de>

How can this site be more helpful to YOU ?

give  feedback