source: trunk/athena/etc/athinfod/athinfo.defs.5 @ 25687

Revision 25687, 2.9 KB checked in by jdreed, 12 years ago (diff)
In athinfod: * Support athinfo.defs.d (Trac: #808) * Correct typos in athinfo.access(5)
Line 
1.\" $Id: athinfo.defs.5,v 1.2 1999-04-13 21:16:36 ghudson Exp $
2.\"
3.\" Copyright 1998, 1999 by the Massachusetts Institute of Technology.
4.\"
5.\" Permission to use, copy, modify, and distribute this
6.\" software and its documentation for any purpose and without
7.\" fee is hereby granted, provided that the above copyright
8.\" notice appear in all copies and that both that copyright
9.\" notice and this permission notice appear in supporting
10.\" documentation, and that the name of M.I.T. not be used in
11.\" advertising or publicity pertaining to distribution of the
12.\" software without specific, written prior permission.
13.\" M.I.T. makes no representations about the suitability of
14.\" this software for any purpose.  It is provided "as is"
15.\" without express or implied warranty.
16.TH ATHINFO.DEFS 5 "2 August 2012"
17.SH NAME
18athinfo.defs \- Define athinfo queries
19.SH SYNOPSIS
20.B /etc/athena/athinfo.defs
21
22.B /etc/athena/athinfo.defs.d
23(optional)
24.SH DESCRIPTION
25The file
26.B /etc/athena/athinfo.defs
27defines the queries understood by the athinfo daemon (see
28.BR athinfod (8)).
29Blank lines and lines beginning with '#' are ignored.  Each line
30consists of a word giving the query name and a command to be executed
31by /bin/sh in response to the query.  The command executed will not
32receive input from the athinfo client.  For security reasons, the
33command should not depend on a network filesystem.
34
35The optional directory
36.B /etc/athena/athinfo.defs.d
37may contain query snippet files, whose filenames must end in
38.I .defs\fP.  The format is identical to the
39.I athinfo.defs
40file.  Queries listed in
41.I athinfo.defs
42will always override queries in these files.  In the event of two files
43providing the same query name, the file which sorts first (using
44alphasort() from scandir(3)) will be used.  The directory need not be
45present, but if it is present, it (and all files in it) must be readable
46by the user as which athinfod runs, or athinfod will generate an error.
47.SH BUGS
48Actually, when parsing files in
49.B athinfo.defs.d
50athinfod will only generate an error if attempts to read an unreadable
51file.  If it finds the query in question in a readable file before
52encountering an unreadable one, no error will be generated.  Users with
53an overly paranoid umask who routinely edit the query definition files
54as root should consider checking the file permissions after making
55changes.
56
57If you create a
58.I .defs
59file in
60.B /etc/athena/athinfo.defs.d
61whose full pathname (including the directory) exceeds PATH_MAX, it will
62not be parsed and will be silently skipped.  Don't do that.
63.SH EXAMPLE
64The following example defines two queries, one to display the routing
65table and another to display the rc.conf file.
66.PP
67.RS
68.nf
69# Query         Command
70
71routes          netstat -rn
72rc.conf         cat /etc/athena/rc.conf
73.fi
74.RE
75.SH "SEE ALSO"
76.BR athinfod (8),
77.BR athinfo.access (5)
78.SH AUTHOR
79Greg Hudson, MIT Information Systems
80.br
81Copyright 1998 by the Massachusetts Institute of Technology.
Note: See TracBrowser for help on using the repository browser.