Cannot find wrapper.conf

Nelio Lucas 7 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 Tananaev 7 years ago

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

Nelio Lucas 7 years ago

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

Anton Tananaev 7 years ago

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

Nelio Lucas 7 years ago

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

Anton Tananaev 7 years ago

On Linux you need to modify systemd service configuration.

Nelio Lucas 7 years ago

Alright, thank you, ill give it a try!

Nelio Lucas 7 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 Lucas 7 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 Tananaev 7 years ago

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

Nelio Lucas 7 years ago

i understand now , i tried using

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