3 .\" Manual for TrIPE services
5 .\" (c) 2008 Straylight/Edgeware
8 .\"----- Licensing notice ---------------------------------------------------
10 .\" This file is part of Trivial IP Encryption (TrIPE).
12 .\" TrIPE is free software: you can redistribute it and/or modify it under
13 .\" the terms of the GNU General Public License as published by the Free
14 .\" Software Foundation; either version 3 of the License, or (at your
15 .\" option) any later version.
17 .\" TrIPE is distributed in the hope that it will be useful, but WITHOUT
18 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 .\" You should have received a copy of the GNU General Public License
23 .\" along with TrIPE. If not, see <https://www.gnu.org/licenses/>.
25 .\"--------------------------------------------------------------------------
26 .so ../common/defs.man \"@@@PRE@@@
28 .\"--------------------------------------------------------------------------
29 .TH tripe-service 7tripe "8 January 2007" "Straylight/Edgeware" "TrIPE: Trivial IP Encryption"
31 .\"--------------------------------------------------------------------------
34 tripe-service \- common information about tripe service providers
36 .\"--------------------------------------------------------------------------
52 .\"--------------------------------------------------------------------------
57 server allows external programs to provide useful services through its
58 administration interface, as described in
60 This manual page describes standard conventions for such service
63 Service providers are programs; they are usually invoked automatically
68 Service providers may accept non-option command-line arguments, but it
69 should always be possible to start the provider without any.
71 All service providers recognize the following options.
74 Print a help message describing the service provider's command line
75 usage and suchlike to standard output, and exit with status 0.
78 Print the service provider's version number to standard output, and exit
81 .BI "\-a, \-\-admin-socket=" socket
82 Connect to the named administration
84 The default socket is given by the environment variable
86 if that's not defined either, a default default of
87 .B $socketdir/tripesock
90 .BI "\-d, \-\-directory=" dir
93 the current directory, before doing anything else. Note that all the
94 other filenames (e.g., the log output file) are relative to this
95 directory. The default directory, if this option is not specified, is
96 taken from the environment variable
98 if that's not defined either, a default default of
103 Run the service provider in the background, as a daemon, after starting
107 Inform the service provider that it is being run as part of
109 startup process, and that it should therefore do any special things
110 which are appropriate.
120 pkg-config --variable=socketdir tripe
125 services are in section 7 of the manual, for want of somewhere better to
126 put them. The manual pages are divided into sections, as usual:
129 The name of the service provider, and any services it provides, with a
130 one-line description.
133 A very brief summary of the command-line syntax of the service provider,
134 a blank line, and one-line summaries of the commands provided by each
138 A general description of the service(s) provided, and any unusual
139 command-line options recognized by the service provider, followed by a
140 description of the commands provided by each service.
142 All services must provide the following simple commands (available by
155 line for each command recognized by the service, in the format used by
162 Send a warning of the form
173 command) and terminate the service-provider program.
175 .\"--------------------------------------------------------------------------
179 .BR tripe\-admin (5).
181 .\"--------------------------------------------------------------------------
184 Mark Wooding, <mdw@distorted.org.uk>
186 .\"----- That's all, folks --------------------------------------------------