Starting daemons in the background with start-stop-daemon
I have made a wrapper to start-stop-daemon that had a new cmdline option, -B |
--background, that allows daemons to be started in the background
asynchronosly. This would allow the login prompt to appear sooner, and would
make Debian appear to be a faster loading system.
Below is the script to do this. It might be too late to do this for 2.0, but
I would like to see some descision on this for 2.1.
Adam
---
#!/bin/sh
back=0
rest=" "
while [ $# -gt 0 ];do
if [ "$1" = "-B" -o "$1" = "--background" ];then
back=1
shift
continue
fi
opt=$1;shift
rest="$rest $opt"
case $opt in
--) rest="$rest $*";shift $#;;
esac
done
[ $back = 1 ] && echo -n "(background)" && bk="&"
eval /sbin/start-stop-daemon~ $rest $bk
---
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: