Hi, I'm setting up my first feed and running into a few issues, the first of which is that darkice doesn't seem to start on reboot, and that I can't start the service manually after the first reboot.
I followed the instructions on this page: Raspberry Pi Broadcastify Build - The RadioReference Wiki, using Method 1 (darkice). I'm using a Raspberry Pi 3 Model B+, with Raspbian Buster Lite (version July 2019). I'm running it headless, via SSH, so I don't have the UI or any of the options and tools that come with it.
I can successfully run darkice manually and start the stream with a command like the one below:
$ sudo /usr/bin/darkice -c /etc/darkice1.cfg
But then I can't do anything else with my terminal, and if I close the connection, darkice stops.
I followed the instructions to set it up as a service...
The provided darkice1 file was moved to /etc/init.d/darkice1
And I ran the command:
$ sudo update-rc.d darkice1 defaults
Right after doing that for the first time, I ran:
$ sudo service darkice1 start
And the service seemed to start fine... the stream came online (but only the first time).
After a reboot, not only did the stream not start back up, it looked like darkice (or darkice1) was not running as expected.
So I ran the command again:
$ sudo service darkice1 start
It paused for a second or two, then returned me to the command prompt, and when I checked, darkice was not running. Many tests and reboots later, I still can't get it to start with that command or with a reboot.
That said, I did find a suggestion in one thread to try the different command:
$ sudo /etc/init.d/darkice1 start
And it replied with: "Starting darkice Instance #1"... and looks like darkice is running!
But it still won't start automatically on reboot.
Does anyone know what's going on here? Are the tools for starting a service maybe different in this newer version of Raspbian? Any advice on how to set this up to automatically start darkice after every reboot?
I followed the instructions on this page: Raspberry Pi Broadcastify Build - The RadioReference Wiki, using Method 1 (darkice). I'm using a Raspberry Pi 3 Model B+, with Raspbian Buster Lite (version July 2019). I'm running it headless, via SSH, so I don't have the UI or any of the options and tools that come with it.
I can successfully run darkice manually and start the stream with a command like the one below:
$ sudo /usr/bin/darkice -c /etc/darkice1.cfg
But then I can't do anything else with my terminal, and if I close the connection, darkice stops.
I followed the instructions to set it up as a service...
The provided darkice1 file was moved to /etc/init.d/darkice1
And I ran the command:
$ sudo update-rc.d darkice1 defaults
Right after doing that for the first time, I ran:
$ sudo service darkice1 start
And the service seemed to start fine... the stream came online (but only the first time).
After a reboot, not only did the stream not start back up, it looked like darkice (or darkice1) was not running as expected.
So I ran the command again:
$ sudo service darkice1 start
It paused for a second or two, then returned me to the command prompt, and when I checked, darkice was not running. Many tests and reboots later, I still can't get it to start with that command or with a reboot.
That said, I did find a suggestion in one thread to try the different command:
$ sudo /etc/init.d/darkice1 start
And it replied with: "Starting darkice Instance #1"... and looks like darkice is running!
But it still won't start automatically on reboot.
Does anyone know what's going on here? Are the tools for starting a service maybe different in this newer version of Raspbian? Any advice on how to set this up to automatically start darkice after every reboot?