man prosodyctl: Add missing 'reload' command
[prosody.git] / man / prosodyctl.man
1 .\" Automatically generated by Pandoc 1.15.2
2 .\"
3 .hy
4 .TH "PROSODYCTL" "1" "2015\-12\-23" "" ""
5 .SH NAME
6 .PP
7 prosodyctl \- Manage a Prosody XMPP server
8 .SH SYNOPSIS
9 .IP
10 .nf
11 \f[C]
12 prosodyctl\ command\ [\-\-help]
13 \f[]
14 .fi
15 .SH DESCRIPTION
16 .PP
17 prosodyctl is the control tool for the Prosody XMPP server.
18 It may be used to control the server daemon and manage users.
19 .PP
20 prosodyctl needs to be executed with sufficient privileges to perform
21 its commands.
22 This typically means executing prosodyctl as the root user.
23 If a user named "prosody" is found then prosodyctl will change to that
24 user before executing its commands.
25 .SH COMMANDS
26 .SS User Management
27 .PP
28 In the following commands users are identified by a Jabber ID, jid, of
29 the usual form: user\@domain.
30 .TP
31 .B adduser jid
32 Adds a user with Jabber ID, jid, to the server.
33 You will be prompted to enter the user\[aq]s password.
34 .RS
35 .RE
36 .TP
37 .B passwd jid
38 Changes the password of an existing user with Jabber ID, jid.
39 You will be prompted to enter the user\[aq]s new password.
40 .RS
41 .RE
42 .TP
43 .B deluser jid
44 Deletes an existing user with Jabber ID, jid, from the server.
45 .RS
46 .RE
47 .SS Daemon Management
48 .PP
49 Although prosodyctl has commands to manage the prosody daemon it is
50 recommended that you utilize your distributions daemon management
51 features if you attained Prosody through a package.
52 .PP
53 To perform daemon control commands prosodyctl needs a pidfile value
54 specified in \f[C]/etc/prosody/prosody.cfg.lua\f[].
55 Failure to do so will cause prosodyctl to complain.
56 .TP
57 .B start
58 Starts the prosody server daemon.
59 If run as root prosodyctl will attempt to change to a user named
60 "prosody" before executing.
61 This operation will block for up to five seconds to wait for the server
62 to execute.
63 .RS
64 .RE
65 .TP
66 .B stop
67 Stops the prosody server daemon.
68 This operation will block for up to five seconds to wait for the server
69 to stop executing.
70 .RS
71 .RE
72 .TP
73 .B restart
74 Restarts the prosody server daemon.
75 Equivalent to running prosodyctl stop followed by prosodyctl start.
76 .RS
77 .RE
78 .TP
79 .B reload
80 Signals the prosody server daemon to reload configuration and reopen log
81 files.
82 .RS
83 .RE
84 .TP
85 .B status
86 Prints the current execution status of the prosody server daemon.
87 .RS
88 .RE
89 .SS Ejabberd Compatibility
90 .PP
91 ejabberd is another XMPP server which provides a comparable control
92 tool, ejabberdctl, to control its server\[aq]s operations.
93 prosodyctl implements some commands which are compatible with
94 ejabberdctl.
95 For details of how these commands work you should see ejabberdctl(8).
96 .IP
97 .nf
98 \f[C]
99 register\ user\ server\ password
100
101 unregister\ user\ server
102 \f[]
103 .fi
104 .SH OPTIONS
105 .TP
106 .B \f[C]\-\-help\f[]
107 Display help text for the specified command.
108 .RS
109 .RE
110 .SH FILES
111 .TP
112 .B \f[C]/etc/prosody/prosody.cfg.lua\f[]
113 The main prosody configuration file.
114 prosodyctl reads this to determine the process ID file of the prosody
115 server daemon and to determine if a host has been configured.
116 .RS
117 .RE
118 .SH ONLINE
119 .PP
120 More information may be found online at: <https://prosody.im/>
121 .SH AUTHORS
122 Dwayne Bent <dbb.1@liqd.org>; Kim Alvefur.