chiark / gitweb /
documentation update
[disorder] / doc / disorderd.8.in
CommitLineData
460b9539 1.\"
2.\" Copyright (C) 2004, 2005 Richard Kettlewell
3.\"
4.\" This program is free software; you can redistribute it and/or modify
5.\" it under the terms of the GNU General Public License as published by
6.\" the Free Software Foundation; either version 2 of the License, or
7.\" (at your option) any later version.
8.\"
9.\" This program is distributed in the hope that it will be useful, but
10.\" WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12.\" General Public License for more details.
13.\"
14.\" You should have received a copy of the GNU General Public License
15.\" along with this program; if not, write to the Free Software
16.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17.\" USA
18.\"
19.TH disorderd 8
20.SH NAME
21disorderd \- DisOrder jukebox daemon
22.SH SYNOPSIS
23.B disorderd
24.RI [ OPTIONS ]
25.SH DESCRIPTION
26.B disorderd
27is a daemon which plays audio files and services requests from users
28concerning what is to be played.
29.SH OPTIONS
30.TP
31.B --config \fIPATH\fR, \fB-c \fIPATH
32Set the configuration file. The default is
33.IR pkgconfdir/config .
34See
35.BR disorder_config (5)
36for further information.
37.TP
38.B --pidfile \fIPATH\fR, \fB-P \fIPATH
39Write a pidfile.
40.TP
41.B --foreground, \fB-f
42Run in the foreground. (By default,
43.B disorderd
44detaches from its terminal and runs in the background.)
45.TP
46.B --debug\fR, \fB-d
47Enable debugging.
48.TP
49.B --help\fR, \fB-h
50Display a usage message.
51.TP
52.B --version\fR, \fB-V
53Display version number.
54.SH NOTES
67a9f4b4
RK
55.SS "Startup"
56The first time a new install of DisOrder is started it will run
460b9539 57.B disorder-rescan
67a9f4b4
RK
58to pick up new tracks. On subsequent server restarts it will NOT do
59this automatically; if you want a rescan at every restart you must
60arrange that manually.
61.PP
62There is however an automatic rescan once every 24 hours.
460b9539 63.SS "How To Configure Authentication"
64The administrator should create \fIpkgconfdir/config.private\fR, make sure it
65is not world-readable, and populate it with \fBallow\fR commands
66listing usernames and passwords. Use
67e.g. \fBpwgen\fR(1) to generate random passwords. Passwords should
68then be distributed to users.
69.PP
70Each user should create the file \fI~/.disorder/passwd\fR
71and make sure it is not world-readable. Having done so
72they should add a \fBpassword\fR command to it giving their password (and
73optionally a \fBusername\fR command if their DisOrder username is not the
74same as their login name).
75.SS Locales
76.B disorderd
77is locale-aware. If you do not set the locale correctly then it may
78not handle non-ASCII data properly.
79.PP
80Filenames and the configuration file are assumed to be encoded using the
67a9f4b4
RK
81current locale. Internally (within the server, in the database and in
82communication between client and server) the UTF-8 encoding is used.
460b9539 83.SS Backups
84DisOrder uses Berkeley DB but currently discards log files that are no longer
85in use. This means that DB's catastrophic recovery cannot be used (normal
86recovery can be used, and indeed the server does this automatically on
87startup).
88.PP
89It is suggested that instead you just back up the output of
90.BR disorder-dump (8),
91which saves only the parts of the database that cannot be regenerated
92automatically, and thus has relatively modest storage requirements.
93.SH SIGNALS
94.TP 8
95.B SIGHUP
96Re-read the configuration file.
97.TP
98.B SIGTERM
99Terminate the daemon gracefully.
100.TP
101.B SIGINT
102Terminate the daemon gracefully.
103.PP
104It may be more convenient to perform these operations from the client
105\fBdisorder\fR(1).
106.SH FILES
107.TP
108.I pkgconfdir/config
109Global configuration file. See \fBdisorder_config\fR(5).
110.TP
111.I pkgconfdir/config.private
112Private configuration (usernames and passwords).
113.TP
114.I ~/.disorder/passwd
115Per-user password file.
116.TP
117.I pkgstatedir/queue
118Saved copy of queue. Do not edit while the daemon is running.
119.TP
120.I pkgstatedir/recent
121Saved copy of recently played track list.
122Do not edit while the daemon is running.
123.TP
124.I pkgstatedir/prefs.db
125Preferences database.
126.TP
127.I pkgstatedir/search.db
128Search database.
129.TP
130.I pkgstatedir/tracks.db
131Tracks database.
132.TP
133.I pkgstatedir/DB_CONFIG
134Berkeley DB configuration file. This may be used to override database
135settings without recompiling DisOrder. See the Berkeley DB
136documention for further details.
137.TP
138.I pkgstatedir/log.*
139Database log files.
140.TP
141.I pkgstatedir/socket
142Communication socket for \fBdisorder\fR(1).
143.TP
144.I pkgstatedir/lock
145Lockfile. This prevents multiple instances of DisOrder running
146simultaneously.
147.TP
148.I sbindir/disorder-deadlock
149Deadlock manager.
150.TP
151.I sbindir/disorder-rescan
152Rescanner.
153.SH ENVIRONMENT
154.TP
155.B LC_ALL\fR, \fBLANG\fR, etc
156Current locale. See \fBlocale\fR(7).
157.SH "SEE ALSO"
158\fBdisorder\fR(1), \fBdisorder_config\fR(5), \fBdisorder-dump\fR(8)
159.\" Local Variables:
160.\" mode:nroff
161.\" End: