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
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 # See how we were called. case "$1" in start) # Start daemon. echo -n $"Starting darkice streaming daemon: " daemon "$DAEMON -c $CONFIGFILE > /dev/null" RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/darkice ;; stop)