i'm trying to get a b4j program running at reboot of raspberry
I found already lot of comments and examples on the net, but still no lock
Tried Cron: see the cron starts the job, but no running java program
May be someone encounters this problem yet, and solved it?
-Tried to make a batch file: no luck.
Inserted it in cron (as root and as user) @reboot /home/pi java -jar test.jar : no luck
Inserted it in rc.local: no luck
even when i run it every minute i see cron start the bash job, but no action of the program CRON[20537]: (root) CMD (bash /home/pi/jar-start.sh)
mmm no
i can run a small testprogram as sudo /etc/rc.local
but i wont run at reboot.
the testprogram sends me a mail, so i that way i know it works or not
he rwblinn....
got some succes...just received a mail from the rasp
but i discovered that it come after i started crontab manually. Seems that rc.local doesnt start crontab or rc.local is not executed....
the key of the problem seems to be rc.local not been executed..
trying sudo /etc/init.d/rc.local gives positive results, but it's not been executed after reboot...
the rc.local is fine, no problems with the script, but it isnt called during bootup, probably due some changes in the past.
dont know what program is calling rc.local. I inserted a line for test which dumps a txt file. During bootup nothing happens, manually i see the dump.
here a update about this issue
my sd card was broken, so i installed a new rasbian.
And to my surprice the command in rc.local is working now.
somehow something was broken in the previous installation