Question about service traccar 4.1

Jose B7 years ago

Hi Anton,

In this version the post said that no longer use service wrapper and Traccar process runs as service by itself.

Today I use 2 traccar running in same server, separated (named) each process on wrapper. Can I have the same situation on 4.1 without wrapper?

JB

Anton Tananaev7 years ago

Sure. It's even easier now. Just create two separate systemd services.

Jose B7 years ago

Thank you for fast answer

  1. I use windows server platform. Can I configure it during the installation in this new method?

  2. I have using other configuration set-up on wrapper.conf: "wrapper.affinity=" and "wrapper.priority". Are there another new method to configure it?

Anton Tananaev7 years ago

With Windows it's slightly more complicated. You can try to use SC.EXE to create two Traccar services manually.

As for affinity and priority, it is probably possible to configure those through java command line arguments, but what is the reason?

Jose B7 years ago

the reason is an array of CPUs dedicated to traccar

Anton Tananaev7 years ago

Looks like affinity has to be configured outside of JVM, but there must be an easy way. Worst case you can set it manually.

Jose B7 years ago

Thank you for quick answer. I will check more regarding the SC.exe to continue using two traccar on my server.

I could not found the java command to start service traccar [windows] on documentation. Helps?

JB

Anton Tananaev7 years ago

You can start it from services console.

Jose B7 years ago

O was spoking about use SC.exe to create a new service start of second traccar. What would be a Java command to
create and start a New services

Anton Tananaev7 years ago

It's not a Java command.

Jose B7 years ago

I have installed the 4.1 version [to test ] and I could clarify a little more regarding the system process:

C:\Program Files\Traccar\jre\bin\java.exe -jar "C:\Program Files\Traccar\tracker-server.jar" --service "C:\Program Files\Traccar\conf\traccar.xml"

I only do not understand which/where is the config file you correlate each traccar instaled with the respective traccar service

[always thinking install 2 traccar on the same server]

Jose B7 years ago

summary:

I would like to open a new topic on GitHub about having the option to set a specific traccar service name during the install on windows.

The goal is to continue using two traccar on the same server in easy way as was done on the previous version.

Makes sense?

Anton Tananaev7 years ago

I guess it makes sense to make service name configurable.