Good day, I have a question, I’m new in servers, I have made a Blynk local server.
It is working if I run it manually, I want to ask help with auto start up.
@reboot java -jar /root/blynk/server-0.41.14.jar -dataFolder /root/blynk/server_data
I inserted this command in (crontab -e)
The problem is that: I have a folder with all my old logs and data folder, but when my server restarts it create a new log folder. I want to store every thing in my blynk folder. How to do it?
I have Ubuntu 20.04.1 LTS server.
crontab is an old-school approach (in my mind)! Take a look at this:
Today rc.local is more or less obsolete and replaced by systemd in most Linux distribution. As from Ubuntu 16 (I think) rc.local is not enabled by default. You will actually have to run it as a systemd service if you decide to enable it
So, a brief tutorial coming up!
Open up a terminal window on your system. Root privileges are needed, but if you logon as root or use sudo doesn’t matter.
Units created by sysadm should be placed in /etc/systemd/system/ so we change our directory accor…
OK, thank you so much, initially, i have realized it with rc.local, but I liked this method better)