I am trying to Implement LWM2M Client (eclipse/wakaama · GitHub) on Intel Galelio Board. I have implemented a feature where in my client ( Galileo board) will restart once executed to restart from server, but on restart my client should automatically restart which is a executable binary. I tried all option available on various forums but didn't work. I gave proper permission, updated rc.d and also it is visible in run level 3, but my binary does not get executed. Can any one please help me with this?
I have tried all the steps in this link
It's had to tell from a distance. Some ideas to get it working:
You shouldn't link your executable directly; files in
/etc/init.dshould be scripts which invoke the executable with the correct options.After installing the script, try to run it from the command line to make sure it works.
Select a number between two scripts which run in your runlevel. So if you have scripts with numbers
10and20, give your script15. If you see the20script run during boot, you can be pretty sure that your script was run before that.Add logging to your script to check whether it fails at some point. A simple
is enough to see how far your script gets.
Add
-xto the hashbang line of the start script to make it print every command before it executes it.Make sure the output of your executable is redirected properly, so you can actually see any errors.