On Tue, 7 Apr 1998, Robert Woodcock wrote: > Another idea I got on IRC was providing a --background flag to > start-stop-daemon so that daemons could be started in parallel - this > might have quite an effect on SMP systems, and DNS misconfigs would be > more treatable if sendmail started in the background instead of waiting a > few minutes timing out on stuff before anything else could run.
Already done. Here is the wrapper. Rename start-stop-daemon to start-stop-daemon~. Adam === #!/bin/sh back=0 msg=1 rest=" " while [ $# -gt 0 ];do [ "$1" = "-B" -o "$1" = "--background" ] && back=1 && shift && continue [ "$1" = "-N" -o "$1" = "--nobackmsg" ] && msg=0 && shift && continue opt=$1;shift rest="$rest $opt" case $opt in --) rest="$rest $*";shift $#;; esac done if [ $back = 1 ];then [ $msg = 1 ] && echo -n "(background)" 1>&2 bk="&" fi eval /sbin/start-stop-daemon~ $rest $bk === -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]