setup a Raspberry Pi to stream to Broadcastify using Darkice

setup a Raspberry Pi to stream to Broadcastify using Darkice

I am trying to setup a Raspberry Pi to stream to Broadcastify using Darkice.
I have followed the setup process outlined on this website:
The issue I'm currently facing is that I cannot get the service to work.
In /etc/init.d/darkice1 I have:


#! /bin/sh
# /etc/init.d/darkice1 

### BEGIN INIT INFO
# Provides:          darkice1
# Required-Start:    $all
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Simple script to start a program at boot
# Description:       A simple script to start and stop darkice
### END INIT INFO

# If you want a command to always run, put it here

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "START"    
    if [ ! -f /etc/darkice1.cfg ]; then
    echo "Configuration file /etc/darkice1.cfg not found! Darkice not started... "
    exit 1
    fi
    echo "Starting darkice Instance #1"
    /usr/bin/darkice
    ;;
  stop)
    echo "Stopping darkice Instance #1"
    pkill -f darkice1
    ;;
  *)
    echo "Usage: /etc/init.d/darkice1 {start|stop}"
    exit 1
    ;;
esac

exit 0


No comments:

Post a Comment

Note: only a member of this blog may post a comment.