issues with install traccar 4.1 (centos 6)

Josue 7 years ago

Hi Anton
im getting issues with installing traccar on centos 6.9.
thats the error

root@host1 [/opt/rh]# ./traccar.run
Creating directory out
Verifying archive integrity...  100%   All good.
Uncompressing traccar  100%
mv: cannot move `/opt/traccar/traccar.service' to `/etc/systemd/system': No such file or directory
chmod: cannot access `/etc/systemd/system/traccar.service': No such file or directory

in centos 6 how can i run traccar without systemctl?

Anton Tananaev 7 years ago

You can use manual installation.

Anton Tananaev 7 years ago

But I would recommend upgrading your operating system.

Josue 7 years ago

ok thanks Anton i suppose that running this command in SSH java -jar tracker-server.jar conf/traccar.xml will be start traccar service correctly but how can i stop it?

Anton Tananaev 7 years ago

It will start the process in your terminal session. You can stop it by sending termination signal.

Josue 7 years ago

ok but what is the the command for send termination signal? excuse me but.. i was looking for termination signal in forum and web but i didnt find it,

Anton Tananaev 7 years ago

Usually you just press CTRL+C. It's not something specific to Traccar.

Josue 7 years ago

ah ok i understand.. but maybe i cannot explain my question correctly,
my question was about stop traccar background service, not for stop the process of start service. For example if i change config in traccar i will need to restart traccar (stop and start) and how can i do it manually?

Anton Tananaev 7 years ago

Your command doesn't start service in the background.

Josue 7 years ago

ok but here https://www.traccar.org/manual-installation/ dont mention how to start a service or how to stop, just how to install, even if service start automatically after install how could i stop service or restart manually? or im forced to reboot server for do that?

Anton Tananaev 7 years ago

I think you are misunderstanding something. With manual installation it's up to you to run Traccar as a service. We don't provide any instructions for that because that would be OS specific. We just provide a command on how to run Traccar. It doesn't run it as a background system service.

Josue 7 years ago

ok i know that i can install and run traccar correctly , i meant how can restart traccar? or how can i stop traccar? for example in centos 7 i put systemctl stop traccar.service but what about in centos 6?