I can certainly commiserate with you.. sometimes I think I know what I am doing pretty well, then I run into something that drives me nuts. But I refuse to let any piece of silicon beat me so I usually stay with a problem no matter how long it takes... which explains why my laptop starts crashing a few times, every few weeks, and has done so for a year or more. The “trouble ticket” is still open here as I will never give up but I might have to add it to my bucket list, i.e. “Fix laptop before dying”. (LOL)
So if you want to avoid using the “proper” SysV init method, use a cron job instead. Not as elegant but it works.
Q: On the console (must be local/direct connected) when its booting up, toward the end and maybe just before you get a login prompt, do you see “Starting darkice..” if so it’s starting all right, but then it stops. For example if the network is not reachable yet and it can’t connect it will stop but it won’t be so polite as to let you know.
Now to your issues. LSB error is no doubt a reference to the LSB (Linux Standards Base) compliant headers in you dependency based boot init script(s). The init script runs fine when run manually but fails on bootup so it sounds like something is not compliant on your box.
Now I don’t have mathkernal or Mathematica on my RasPi.. but I stumbled across this web page:
Raspberry Pi • View topic - Raspbian init script bug
Which might explain the error you are seeing. Give it a shot. Either:
1. add the LSB header to /etc/init.d/mathkernel
Or 2. uninstall it (mathkernal and/or Mathematica?) and make sure that etc/init.d/mathkernel is gone
Or 3. Just remove the symlinks for the boot sequence: ‘sudo update-rc.d –f mathkernel remove’ (This option might not survive a system update)
I see no reason to not have darkice start last. That way we know the system is fully operational before it does start. Change the line in darkice init file: /etc/init.d.darkice
to #Required start $all
Remove the current darkice links for the boot sequence just to be sure it’s a clean slate: ‘sudo update-rc.d –f darkice remove’
Then run ‘sudo update-rc.d darkice defaults 99’ to force it to last position in the boot sequence.
If you want to explore a little now.. ‘cd /etc/rc2.d’ then ‘ls –la’
Look for a link with the word darkice in it. The link should be “Sxxdarkice’ where xx is higher or equal to the others in the directory (04 on my system), and it should point to /etc/init.d/darkice. These links of course point to all the scripts that are supposed to start in run level 2. You can also explore the other run level directories, rc0.d, rc1.d, etc. if you wish. Darkice should be set up to start in the run levels specified in the LSB header in the /etc/init.d/darkice file, namely 2 3 4 5.
(Don’t edit this links directly, that’s what update-rc.d is for)
If still no joy then we have to look further and maybe you would be willing to allow me a copy of your SD card to run here (minus passwords, etc) or even SSH in to try and fix it. Don’t let the silicone win!
'73 de N4YTM