chiark / gitweb /
New icons for Disobedience. They are bigger and more colorful than
[disorder] / doc / disorderd.8.in
CommitLineData
460b9539 1.\"
5aff007d 2.\" Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
460b9539 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
0d350ff0 31.B \-\-config \fIPATH\fR, \fB\-c \fIPATH
c0c23a60
RK
32Set the configuration file.
33The default is
460b9539 34.IR pkgconfdir/config .
35See
36.BR disorder_config (5)
37for further information.
38.TP
0d350ff0 39.B \-\-pidfile \fIPATH\fR, \fB\-P \fIPATH
460b9539 40Write a pidfile.
41.TP
0d350ff0 42.B \-\-foreground\fR, \fB\-f
c0c23a60
RK
43Run in the foreground.
44(By default,
460b9539 45.B disorderd
46detaches from its terminal and runs in the background.)
47.TP
0d350ff0 48.B \-\-syslog\fR, \fB\-s
c0c23a60
RK
49Log to syslog.
50This is the default if DisOrder runs in the background.
25ca855b 51.TP
0d350ff0 52.B \-\-debug\fR, \fB\-d
460b9539 53Enable debugging.
54.TP
0d350ff0 55.B \-\-help\fR, \fB\-h
460b9539 56Display a usage message.
57.TP
0d350ff0 58.B \-\-version\fR, \fB\-V
460b9539 59Display version number.
60.SH NOTES
180dcdb0
RK
61For configuration file documentation, see
62.BR disorder_config (5).
67a9f4b4
RK
63.SS "Startup"
64The first time a new install of DisOrder is started it will run
460b9539 65.B disorder-rescan
c0c23a60
RK
66to pick up new tracks.
67On subsequent server restarts it will NOT do
67a9f4b4
RK
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.
460b9539 72.PP
08ddd038 73A \fBroot\fR login is automatically created on startup if it does not
c0c23a60
RK
74exist.
75If \fBdisorder\fR(1) is run as root on the same machine as the
08ddd038
RK
76server it is capable of extracting the password from the database
77directly.
7a9edc82
RK
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 .
08ddd038 92.SS "Locales"
460b9539 93.B disorderd
c0c23a60
RK
94is locale-aware.
95If you do not set the locale correctly then it may not handle
96non-ASCII data properly.
460b9539 97.PP
98Filenames and the configuration file are assumed to be encoded using the
c0c23a60
RK
99current locale.
100Internally (within the server, in the database and in
67a9f4b4 101communication between client and server) the UTF-8 encoding is used.
460b9539 102.SS Backups
103DisOrder uses Berkeley DB but currently discards log files that are no longer
c0c23a60
RK
104in use.
105This means that DB's catastrophic recovery cannot be used (normal
460b9539 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
0d350ff0 110.BR disorder\-dump (8),
460b9539 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
7a9edc82 127.SS "Configuration Files"
460b9539 128.TP
129.I pkgconfdir/config
c0c23a60
RK
130Global configuration file.
131See \fBdisorder_config\fR(5).
460b9539 132.TP
133.I pkgconfdir/config.private
7a9edc82 134Private configuration (now largely obsolete).
460b9539 135.TP
136.I ~/.disorder/passwd
137Per-user password file.
7a9edc82
RK
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.
460b9539 145.TP
146.I pkgstatedir/queue
c0c23a60 147Saved copy of queue.
460b9539 148.TP
149.I pkgstatedir/recent
150Saved copy of recently played track list.
7a9edc82
RK
151.TP
152.I pkgstatedir/global.db
153Global preferences database.
154.TP
155.I pkgstatedir/noticed.db
156Records recently added tracks.
460b9539 157.TP
158.I pkgstatedir/prefs.db
159Preferences database.
160.TP
7a9edc82
RK
161.I pkgstatedir/schedule.db
162Database of scheduled tasks.
25ca855b 163.TP
460b9539 164.I pkgstatedir/search.db
25ca855b
RK
165Search lookup database.
166.TP
167.I pkgstatedir/tags.db
168Tag lookup database.
460b9539 169.TP
170.I pkgstatedir/tracks.db
171Tracks database.
172.TP
7a9edc82
RK
173.I pkgstatedir/users.db
174User database.
175.TP
460b9539 176.I pkgstatedir/DB_CONFIG
c0c23a60
RK
177Berkeley DB configuration file.
178This may be used to override database settings without recompiling
179DisOrder.
180See the Berkeley DB documention for further details.
460b9539 181.TP
25ca855b
RK
182.I pkgstatedir/log.* \fRand \fIpkgstatedir/__db.*
183Database internal files.
460b9539 184.TP
7a9edc82
RK
185.I pkgstatedir/speaker/socket
186Socket for communication with \fBdisorder-speaker\fR(8).
460b9539 187.TP
188.I pkgstatedir/lock
c0c23a60
RK
189Lockfile.
190This prevents multiple instances of DisOrder running simultaneously.
460b9539 191.SH ENVIRONMENT
192.TP
193.B LC_ALL\fR, \fBLANG\fR, etc
c0c23a60
RK
194Current locale.
195See \fBlocale\fR(7).
460b9539 196.SH "SEE ALSO"
5c1ae3bc
RK
197\fBdisorder\fR(1), \fBdisorder_config\fR(5), \fBdisorder\-dump\fR(8),
198\fBdisorder.cgi\fR(8)
460b9539 199.\" Local Variables:
200.\" mode:nroff
201.\" End: