Server stops when I close installation command, how to permanently activate it

Muhammad Farooqi5 years ago

Dear Sir,
I'm running Centos, when i run following command in terminal,

java -jar tracker-server.jar conf/traccar.xml

the Server app starts working, and I dont' see any thing happening in terminal. but my cursor is like waiting .... to put any next command i have to type Ctrl+C, and ..... Traccar server app stops working..

How can i leave this server active, and keep recording device's history?
If the server is not running, it will definitely not save any history.

Anton Tananaev5 years ago

I would recommend you to install Traccar properly as a daemon.

Muhammad Farooqi5 years ago

And what would be it's process? Can you please share me the right URL for this..
BTW.. i'm already running website Apache server on our VPS.. and dont' want to get that broken.

thank you

Anton Tananaev5 years ago

Download installer and follow official instructions from this website.

Muhammad Farooqi5 years ago

which installer do you recommend for CentOS

Anton Tananaev5 years ago

There is only one installer for Linux.

Muhammad Farooqi5 years ago

but that /opt/traccar/bin/traccar start is not working in that
.. It kept saying.. command not found
when I did CD to .. /opt/traccar
there is no bin dirctory inside..

Anton Tananaev5 years ago

I have no idea where you got that command. I would recommend you to read official documentation a bit more carefully:

https://www.traccar.org/linux/

Muhammad Farooqi5 years ago

Thank you brother.. it worked like a charm.. I followed already available solutions in forum.. This was even simpler...

Muhammad Farooqi5 years ago

This is what i did..

  1. sudo yum install java-1.8.0-openjdk (if not already installed)
  2. wget https://github.com/traccar/traccar/releases/download/v4.2/traccar-linux-64-4.2.zip
  3. unzip traccar-linux-64-3.6.zip
  4. sudo ./traccar.run
  5. i followed further commands according to this.

https://www.traccar.org/linux/

Thank you .. it works

Anton Tananaev5 years ago

You don't even need Java. You can start from the second point.

Muhammad Farooqi5 years ago

Thank you Anton!