3

I am trying to use the GPSD as a server, that is: everything must be done by command line, such as: gpsd --help.

I read the documentation here, which says that.in order to let gpsd work as server, you need to stop or kill the gpsd daemon first.

But I do not know how.

I ran service --status-all and it shows me the list of running daemons, which included gpsd:

[ - ]  gpsd

is it still working or stopped?

I also tried to use start-stop-daemon -k but it did not work, I just get shown the help when I try that.

Zanna
  • 72,312

1 Answers1

2

As you can read from service man page:

service --status-all runs all init scripts, in alphabetical order, with the status command. The status is [ + ] for running services, [ - ] for stopped services and [ ? ] for services without a 'status' command. This option only calls status for sysvinit jobs; upstart jobs can be queried in a similar manner with initctl list.

So, answering your question, YES, it is stopped.

To get the status of any daemon with the following:

start-stop-daemon -T --name gpsd

or if you know gpsd's PID:

start-stop-daemon -T --pid 0123

To kill/stop it, run any (note that the -K is a capital letter):

start-stop-daemon -K --name gpsd
start-stop-daemon -K --pid 4567

Sources:

start-stop-daemon man pages for 14.04

service man pages for 14.04

Zanna
  • 72,312
M. Becerra
  • 3,538
  • 5
  • 24
  • 40