[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] autostart on Debian

From: steve
Subject: Re: [gpsd-users] autostart on Debian
Date: Wed, 24 Aug 2016 00:02:01 +0000 (UTC)

I would suggest a much easier solution that is portable across different distros.   Use supervisord.   It is very simple and will do more than just start your service.  It will rotate the logs.  It will restart your service if it crashes.  It will manage a second service for you the same ini-like configuration file.  It has a simple commandline to manage your services.     Pretty much every distro supports supervisord

Supervisor: A Process Control System — Supervisor 3.3.1 documentation

On Saturday, August 20, 2016 4:34 PM, Robin Schwab <address@hidden> wrote:

Dear Gary
I just spent a few hours finding out how to make GPSD autostart on
Raspbian Jessie. In [1] you write under /Troubleshooting Start at Boot/
to set ExecStart=/usr/sbin/gpsd -N …

Well this does not work under current GPSD and Raspbian. scons puts the
file GPSD in the folder /user/local/sbin/gpsd so you have to adapt that

For troubleshooting I would recommend this:
1st run $systemctl status gpsd.service to see what systemd did with gpsd
2nd run $whereis gpsd to find the path to the file
3rd apply this path in /etc/systemd/system/gpsd.service

BTW: In Wheezy I could still use dpkg-reconfigure gpsd even when I
compiled my own gpsd. Troubleshooting would not be needed in most cases
if dpkg-reconfigure would do things right even in Jessie.

Just my 50 cents.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]