chiark / gitweb /
Improve server man page a bit
[disorder] / doc / disorderd.8.in
... / ...
CommitLineData
1.\"
2.\" Copyright (C) 2004, 2005, 2007, 2008 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.
33The default is
34.IR pkgconfdir/config .
35See
36.BR disorder_config (5)
37for further information.
38.TP
39.B \-\-pidfile \fIPATH\fR, \fB\-P \fIPATH
40Write a pidfile.
41.TP
42.B \-\-foreground\fR, \fB\-f
43Run in the foreground.
44(By default,
45.B disorderd
46detaches from its terminal and runs in the background.)
47.TP
48.B \-\-syslog\fR, \fB\-s
49Log to syslog.
50This is the default if DisOrder runs in the background.
51.TP
52.B \-\-debug\fR, \fB\-d
53Enable debugging.
54.TP
55.B \-\-help\fR, \fB\-h
56Display a usage message.
57.TP
58.B \-\-version\fR, \fB\-V
59Display version number.
60.SH NOTES
61For configuration file documentation, see
62.BR disorder_config (5).
63.SS "Startup"
64The first time a new install of DisOrder is started it will run
65.B disorder-rescan
66to pick up new tracks.
67On subsequent server restarts it will NOT do
68this automatically; if you want a rescan at every restart you must
69arrange that manually.
70.PP
71There is however an automatic rescan once every 24 hours.
72.PP
73A \fBroot\fR login is automatically created on startup if it does not
74exist.
75If \fBdisorder\fR(1) is run as root on the same machine as the
76server it is capable of extracting the password from the database
77directly.
78.PP
79Therefore it is immediately possible to create other users with
80.B "disorder adduser"
81as root on the server machine.
82However it is likely to be preferable to get users to register
83themselves via the web interface; see
84.B setup-guest
85in
86.BR disorder (1)
87for more details on this.
88.SS "Logging"
89In its usual configuration, DisOrder logs to daemon.* via \fBsyslog\fR(3).
90Exactly where this ends up depends on the contents of
91.IR /etc/syslog.conf .
92.SS "Locales"
93.B disorderd
94is locale-aware.
95If you do not set the locale correctly then it may not handle
96non-ASCII data properly.
97.PP
98Filenames and the configuration file are assumed to be encoded using the
99current locale.
100Internally (within the server, in the database and in
101communication between client and server) the UTF-8 encoding is used.
102.SS Backups
103DisOrder uses Berkeley DB but currently discards log files that are no longer
104in use.
105This means that DB's catastrophic recovery cannot be used (normal
106recovery can be used, and indeed the server does this automatically on
107startup).
108.PP
109It is suggested that instead you just back up the output of
110.BR disorder\-dump (8),
111which saves only the parts of the database that cannot be regenerated
112automatically, and thus has relatively modest storage requirements.
113.SH SIGNALS
114.TP 8
115.B SIGHUP
116Re-read the configuration file.
117.TP
118.B SIGTERM
119Terminate the daemon gracefully.
120.TP
121.B SIGINT
122Terminate the daemon gracefully.
123.PP
124It may be more convenient to perform these operations from the client
125\fBdisorder\fR(1).
126.SH FILES
127.SS "Configuration Files"
128.TP
129.I pkgconfdir/config
130Global configuration file.
131See \fBdisorder_config\fR(5).
132.TP
133.I pkgconfdir/config.private
134Private configuration (now largely obsolete).
135.TP
136.I ~/.disorder/passwd
137Per-user password file.
138.SS "Communication"
139.TP
140.I pkgstatedir/socket
141Communication socket for \fBdisorder\fR(1).
142See \fBdisorder_protocol\fR(5) for protocol documentation.
143.SS "Internal State"
144Don't modify these files, especially not while the server is running.
145.TP
146.I pkgstatedir/queue
147Saved copy of queue.
148.TP
149.I pkgstatedir/recent
150Saved copy of recently played track list.
151.TP
152.I pkgstatedir/global.db
153Global preferences database.
154.TP
155.I pkgstatedir/noticed.db
156Records recently added tracks.
157.TP
158.I pkgstatedir/prefs.db
159Preferences database.
160.TP
161.I pkgstatedir/schedule.db
162Database of scheduled tasks.
163.TP
164.I pkgstatedir/search.db
165Search lookup database.
166.TP
167.I pkgstatedir/tags.db
168Tag lookup database.
169.TP
170.I pkgstatedir/tracks.db
171Tracks database.
172.TP
173.I pkgstatedir/users.db
174User database.
175.TP
176.I pkgstatedir/DB_CONFIG
177Berkeley DB configuration file.
178This may be used to override database settings without recompiling
179DisOrder.
180See the Berkeley DB documention for further details.
181.TP
182.I pkgstatedir/log.* \fRand \fIpkgstatedir/__db.*
183Database internal files.
184.TP
185.I pkgstatedir/speaker/socket
186Socket for communication with \fBdisorder-speaker\fR(8).
187.TP
188.I pkgstatedir/lock
189Lockfile.
190This prevents multiple instances of DisOrder running simultaneously.
191.SH ENVIRONMENT
192.TP
193.B LC_ALL\fR, \fBLANG\fR, etc
194Current locale.
195See \fBlocale\fR(7).
196.SH "SEE ALSO"
197\fBdisorder\fR(1), \fBdisorder_config\fR(5), \fBdisorder\-dump\fR(8),
198\fBdisorder.cgi\fR(8)
199.\" Local Variables:
200.\" mode:nroff
201.\" End: