[darkice] Re: Start on boot

  • From: Ákos Maróy <akos@xxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Tue, 21 Dec 2010 09:55:48 +0100

On 12/20/2010 10:24 PM, DarkIce wrote:
> On Monday December 20, 2010 11:23:26 Roland Whitehead wrote:
>> I have encoders running Ubuntu 10.10 netbook edition and Darkice. All works
>> fine except I would like to have Darkice start on boot. I have tried
>> various init.d scripts. These run (start, stop, restart, status) but won't
>> run on boot regardless of if I run an update-rc script or put something
>> into rc.local. There is nothing in the logs to indicate a failure. In fact
>> I have added my own logging which adds an entry every time the script is
>> called and the start script is running on boot but Darkice remains
>> obstinately dark...
>>
>> Does anyone have a reliable method of starting Darkice on boot?
> 
> 
> create a BASH script or just call darkice direct that you call via cron job 
> for root
> 
> @REBOOT /path/to/darkice -v 10 -c /usr/darkice/darkice.cfg
> 
> 
> Has to be root for it to run each boot up

an alternative is to append basically the same line to /etc/rc.local :

/path/to/darkice -v 10 -c /usr/darkice/darkice.cfg &


this is executed at the end of startup, when all other services have
already been started

Other related posts: