Hello,
I have created a server in Java which I compiled to a jar file. I also created a bash script which will automatically send a command to the server and to put the received data in a query to a database.
Problem is I want the server and the bash script to start at boot so I did put it in /etc/rc.local. But that doesn't seem to work, I'm sure the server is starting because I can connect to it with a client, but it's like it crashes or something because the script doesn't send anything to my database.
When not putting these in /etc/rc.local and starting them seperately it works fine.