Cannot find wrapper.conf

Nelio Lucas6 years ago

Hi,
id like to force the time zone on traccar server to UTC+2
i found this solutuion :

wrapper.java.additional.1=-Duser.timezone=UTC 

on this link https://github.com/traccar/traccar/issues/1522

but i cannot find the wrapper.conf file, where is it situated ?

Anton Tananaev6 years ago

There is no wrapper anymore. You need to pass Java parameters directly in the service command line.

Nelio Lucas6 years ago

sorry for the ignorance but which service command line? could you guide/instruct me into doing so ? possibly with an example?

Anton Tananaev6 years ago

It depends on the OS. I would recommend to search forum because this has been discussed before.

Nelio Lucas6 years ago

The OS is linux. but sure, ill look through the forum.

Anton Tananaev6 years ago

On Linux you need to modify systemd service configuration.

Nelio Lucas6 years ago

Alright, thank you, ill give it a try!

Nelio Lucas6 years ago

Anton i've been looking for the past hour but i cant seem to find how to modify the systemmd service configuration. My apologies but could you help me through this, or atleast point me to the topic where it has been discussed?
Again , apologies

Nelio Lucas6 years ago

so i managed to find the traccar.service , file i'm guessing this is the systemd file that you were refering to that needs modification.

so now do i just need to add wrapper.java.additional.1=-Duser.timezone=UTC to the file and thats it?

Anton Tananaev6 years ago

There is no wrapper anymore. As I said before, you need to add it directly to the command line.

Nelio Lucas6 years ago

i understand now , i tried using

java -Duser.timezone=UTC+2 but this command did not work.