I’ve read the various threads on this issue but still cant get it to run on start-up.
I know this is probably a Linux question but any help will be appreciated.
Blynk - IOS app
Raspberry Pi 3 with Stretch installed
I’ve tried both the methods outlined in Docs, crontab -e doesnt work neither does adding “java -jar /home/pi/server-0.39.4.jar -dataFolder /home/pi/Blynk &” to the /etc/rc.local file.
When typing-
cd Blynk
then
java -jar server-0.39.4-java8.jar -dataFolder /home/pi/Blynk
the server starts and runs normally but wont start on reboot.
I had the same issue couple days ago when building a new server. Here is what I found out: make sure the path that contain jar file is correct. Below is my fixed
Hi Key,
Thanks for the reply but it still doesn’t work- please see below for what Ive done
This starts the server correctly-
""pi@raspberrypi:~ $ cd Blynk
pi@raspberrypi:~/Blynk $ java -jar server-0.39.4-java8.jar -dataFolder /home/pi/Blynk
Blynk Server 0.39.5-SNAPSHOT successfully started.
All server output is stored in folder ‘/home/pi/Blynk/logs’ file.
“”
Then I’ve done this in crontab -e
Manual start Blynk server
java -jar server-0.39.4-java8.jar -dataFolder /home/pi/Blynk
At this point, the Blynk Server successfully started. Take a note on login ID and password for the web portal. To get out of this terminal windows, press CTRL+C
Enable Blynk server auto start each time power failure or hardware reboot
a. Open Terminal and type: sudo leafpad
b. Browse to FileSystem\etc\rc.local then add this line as below then save it.