Run Blynk local server on startup from a set directory

I’m using crontab to start my local Blynk server on my Raspberry Pi, using the following command:
@reboot sudo java -jar Blynk/server-0.32.0-java8.jar -dataFolder /home/pi/Blynk$

The server is started as it should. But it is started from the /home/pi directory, it seems, so all log files and stuff gets placed in /home/pi. Is there any way to start the server application from a custom directory (e.g. /home/pi/Blynk)?

You can start it from whatever directory you place all the files in. And chose the data folder based on your choice in the startup command and/or also in the server.properties

For example I use /home/gunner/Blynk for all my server files and start my /etc/rc.local with:

sudo java -jar /home/gunner/Blynk/server-0.31.1-java8.jar -dataFolder /home/gunner/Blynk &

Need to update my server again I see :stuck_out_tongue:

Thank you, that seems to have done the trick. :slight_smile: