gpsdctl.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!--
  3. This file is Copyright 2010 by the GPSD project
  4. SPDX-License-Identifier: BSD-2-clause
  5. -->
  6. <!DOCTYPE refentry PUBLIC
  7. "-//OASIS//DTD DocBook XML V4.1.2//EN"
  8. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
  9. <refentry id='gpsdctl.8'>
  10. <refentryinfo><date>11 June 2020</date></refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gpsdctl</refentrytitle>
  13. <manvolnum>8</manvolnum>
  14. <refmiscinfo class="source">The GPSD Project</refmiscinfo>
  15. <refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
  16. </refmeta>
  17. <refnamediv id='name'>
  18. <refname>gpsdctl</refname>
  19. <refpurpose>tool for sending commands to gpsd over its control socket</refpurpose>
  20. </refnamediv>
  21. <refsynopsisdiv id='synopsis'>
  22. <cmdsynopsis>
  23. <command>gpdsctl</command>
  24. <arg choice='plain'><replaceable>action</replaceable></arg>
  25. <arg choice='plain'><replaceable>device</replaceable></arg>
  26. </cmdsynopsis>
  27. </refsynopsisdiv>
  28. <refsect1 id='description'><title>DESCRIPTION</title>
  29. <para>This is a tool for sending an instance of
  30. <application>gpsd</application> commands over its control socket to
  31. add or remove devices from the daemon's device list. It is not
  32. intended to be called by users, but rather by the Linux hotplug
  33. system and similar facilities.</para>
  34. <para>The action argument may be "add" or "remove". If no daemon
  35. instance is running when an add is requested, this program will launch
  36. one.</para>
  37. <para>The "device" argument should be the pathname of a device. A
  38. device on the list will be opened to read sensor data whenever a
  39. client requests a watch.</para>
  40. <para>Two environment variables are interpreted.</para>
  41. <para><envar>GPSD_SOCKET</envar> sets the location
  42. of the control socket. If the effective user ID of
  43. this program is root then it usually defaults to
  44. <filename>/run/gpsd.sock</filename>, although some systems may use the
  45. deprecated <filename>/var/run/gpsd.sock</filename> instead. Non-root
  46. users will use <filename>/tmp/gpsd.sock</filename>.</para>
  47. <para><envar>GPSD_OPTIONS</envar>
  48. may be a list of options to be passed to <application>gpsd</application>
  49. when this tool launches it. It defaults to an empty string.</para>
  50. </refsect1>
  51. <refsect1 id='exit_status'><title>RETURN VALUES</title>
  52. <para>1 if the action was unknown or the write to the control socket
  53. failed, 0 otherwise</para>
  54. </refsect1>
  55. <refsect1 id='see_also'><title>SEE ALSO</title>
  56. <para>
  57. <citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
  58. <citerefentry><refentrytitle>gpsctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  59. <citerefentry><refentrytitle>gps</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  60. <citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
  61. <citerefentry><refentrytitle>libgpsmm</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
  62. <citerefentry><refentrytitle>gpsprof</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
  63. <citerefentry><refentrytitle>gpsfake</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
  64. </para>
  65. </refsect1>
  66. <refsect1 id='maintainer'><title>AUTHOR</title>
  67. <para>Eric S. Raymond <email>esr@thyrsus.com</email>.</para>
  68. </refsect1>
  69. </refentry>