Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / apps / log-exists.1 @ master

History | View | Annotate | Download (1.21 KB)

1 6065974c Eric Allman
.Dd September 18, 2015
2
.Dt LOG-EXISTS 1
3
.Os Swarm-GDP
4
.Sh NAME
5
.Nm log-exists
6
.Nd test to see if a log exists
7
.Sh SYNOPSIS
8
.Nm
9
.Op Fl D Ar debug-spec
10
.Op Fl G Ar router-ip
11
.Ar log-name
12
.Sh DESCRIPTION
13
.Nm
14
tests to see if the given
15
.Ar log-name
16
can be opened and returns an appropriate exit status.
17
It never prints anything.
18
.Nm
19
is only useful in shell scripts.
20
.Sh OPTIONS
21
.Bl -tag
22
.It Fl D Ar debug-spec
23
Turns on debugging flags using the libep-style format.
24
Useful only with the code in hand.
25
.It Fl G Ar router-ip
26
Contact the given IP address (which may be a DNS name)
27
to get a connection to the GDP routing layer.
28
This will be replaced by automatic discovery
29
(for example, using Zeroconf)
30
soon.
31
The address may have an optional port number after a colon.
32
If this is not specified,
33
the names listed in the
34
.Va swarm.gdp.routers
35
runtime administrative parameter
36
are searched.
37
.El
38
.Sh EXIT STATUS
39
.Bl -tag
40
.It Li EX_UNAVAILABLE
41
There was some failure during startup.
42
.It Li EX_USAGE
43
Command line parameters are incorrect.
44
.It Li EX_OK
45
The log exists.
46
.It Li EX_NOINPUT
47
The log does not exist.
48
.El
49
.\".Sh ADMINISTRATIVE PARAMETERS
50
.\".Sh ENVIRONMENT
51
.\".Sh FILES
52
.\".Sh SEE ALSO
53
.\".Xr gdp 7 ,
54
.\".Xr gdplogd 8
55
.\".Sh EXAMPLES
56
.\".Sh BUGS