4

daemon function in /init.d does not run the program in the background in fedora13

view full story
linux-howto

http://unix.stackexchange.com – I use Fedora 13 and am trying to create a service for darkice. I put the script in the /etc/init.d directory and if I use the command service darkice start, the darkice is running in the foreground and the command prompt is not returned. How do I make darkice run in the background? The following is the excerpt from the darkice script. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/bin/darkice NAME=darkice DESC="Darkice live audio streamer" test -x $DAEMON || exit 0 CONFIGFILE="/etc/darkice.cfg" # Source function library. . /etc/rc.d/init.d/functions (HowTos)