Added the hubmgr.1 manpage.
[doldaconnect.git] / doc / man / hubmgr.1
CommitLineData
6d00b97a
FT
1.\"
2.\" Copyright (C) 2007 Fredrik Tolf <fredrik@dolda2000.com>
3.\"
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
8.\"
9.\" The GNU General Public License's references to "object code"
10.\" and "executables" are to be interpreted as the output of any
11.\" document formatting or typesetting system, including
12.\" intermediate and printed output.
13.\"
14.\" This manual is distributed in the hope that it will be useful,
15.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17.\" GNU General Public License for more details.
18.\"
19.\" You should have received a copy of the GNU General Public
20.\" License along with this manual; if not, write to the Free
21.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
22.\" USA.
23.\"
24.TH HUBMGR 1 "2007-11-18" "" "Dolda Connect manual"
25.SH NAME
26hubmgr \- Automatic hub manager for Dolda Connect
27.SH SYNOPSIS
28.B hubmgr
29[ \fB-dq\fP ] [ \fB-s\fP \fIserver\fP ]
30.SH DESCRIPTION
31The \fBhubmgr\fP program will read a list of Direct Connect hubs, and
32try to ensure that they are connected to at all times. That involves
33both connecting to them initially, and reconnecting to them, should
34they later disconnect for any reason. If a hub is unreachable,
35\fBhubmgr\fP will keep trying to connect to it in intervals until
36successful.
37.P
38\fBhubmgr\fP handles the SIGINT, SIGHUP and SIGTERM signals and exit
39upon receipt of either one of them. It will also listen for messages
40on the name \fBhubmgr\fP and exit if it receives a message with the
41first token being \fBexit\fP. Upon exit, it will disconnect all
42managed hubs.
43.SH OPTIONS
44.TP
45.B -d
46Normally, \fBhubmgr\fP will daemonize after it has connected and
47authenticated to the daemon successfully. Giving the -d option will
48cause it to continue running in the foreground instead.
49.TP
50.B -q
51Signals more quiet operation. Only error messages will be displayed.
52.TP
53.BI -s " server"
54Connect to \fIserver\fP instead of the default server.
55.SH FILES
56The configuration file for \fBhubmgr\fP is named ~/.hublist. It needs
57to be formatted as follows:
58.P
59The file format is line oriented. A line may be empty, causing it to
60be ignored. There is no syntax for comments. Each non-empty line will
61be divided into words, separated by spaces. Spaces within a word may
62be quoted by enclosing the word in citation marks. The first word on
63each line is the protocol the hub uses. Currently, only the \fBdc\fP
64protocol is supported, signalling a normal Direct Connect hub. The
65second word is the address to the hub, using either a domain name or
66an IP address, followed by a colon, followed by the port number of the
67hub. The port number must always be specified.
68.P
69After the protocol and address words, an arbitrary number of optional
70arguments may follow, to specify such things as the nickname to use,
71or a password to supply to the hub. An argument is two words; one word
72to specify what argument it is, and another for the actual value. The
73following arguments are currently available:
74.TP
75.BI nick " nickname"
76Use \fInickname\fP instead of the server-wide default nickname when
77connecting to the hub.
78.TP
79.BI password " password"
80If the hub requests a password when connecting, use the given
81\fIpassword\fP for that purpose.
82.TP
83.BI charset " charset"
84Use the given charset when communicating with the hub. If this
85argument is not given, the Microsoft CP1252 charset will be used. Most
86hubs will expect the default charset. This option is somewhat
87experimental, and, due to the inherent non-internationalized nature of
88the Direct Connect protocol, may not work quite as one would expect.
89.TP
90.BI dcppemu " emulation"
91Override the \fBdc.dcppemu\fP option configured in the daemon for this
92specific hub, if \fIemulation\fP is \fBy\fP or \fBn\fP. See the
93\fBdoldacond.conf\fP(5) manual page for further information about
94\fBdc.dcppemu\fP.
95.SS Examples
96The following example, if copied into the ~/.hublist file, will
97connect to three hubs. The first one will be connected to normally,
98without any special processing. The second one requires a
99password. The third one requires both a special nickname and a
100password, which contains a space.
101.P
102.nf
103dc hub1.somenet.org:411
104dc dc.someother.net:555 password s3cr3t
105dc a.thirdnet.com:411 nick Cooldude password "Very Secret"
106.fi
107.SH AUTHOR
108Fredrik Tolf <fredrik@dolda2000.com>
109.SH SEE ALSO
110\fBdoldacond.conf\fP(5), \fBdoldacond\fP(8)