What line to add for traccar 3.8 to autostart on reboot

HJvD6 years ago

What line do I have to add as a cronjob when I want my traccar 3.8 want to autostart on a reboot?

Anton Tananaev6 years ago

You should install 3.9. It solves the problem with auto-start.

HJvD6 years ago

Sorry, it is 3.9 I'm running on my RaPi 3 with Debian Jesse Lite. What could be the problem here? Tried sudo reboot for checking if traccar was autostarting.

Anton Tananaev6 years ago

Check if there is a link to Traccar in the init scripts directory.

HJvD6 years ago

OK.
There is a file in /etc/init.d called 'traccar'. Is this what you mean?

Anton Tananaev6 years ago

You should have for example this link:

/etc/rc3.d/S01traccar

If it's there, the service should start automatically on startup.

HJvD6 years ago

OK,

ran another test, without shutting Traccar down first properly. Then after a sudo reboot Traccar started up fine. Thanks for your directions.