Name
eventdctl — control utility for eventd
Synopsis
eventdctl [OPTIONS...] {command} [command arguments...]
Description
eventdctl is the control utility for eventd(1).
Options
-
-s,--socket=socket eventd control socket
-
-a,--auto-spawn -
Spawn eventd if needed
It will pass the
--private-socketoption to eventd with the socket specified to the eventdctl--socketoption. -
-S,--system -
Talk to system eventd
It will use
/runinstead of$XDG_RUNTIME_DIR. Only has effect for the default socket.It is the default if
$XDG_RUNTIME_DIRis unset. -
-V,--version Print version
-
-h,--help Show help options
Commands
- version
Query the eventd version.
- start
-
Start eventd if needed.
It can take the option
--argv0which means that the first argument is the command to call. If not specified, eventdctl will search for eventd inPATH.All the remaining arguments are passed to eventd.
- stop
Quit eventd.
- reload
Make eventd reload its configuration.
- dump
sub-command -
Dumps eventd configuration (see eventd.conf(5))
- event
event configuration id Shows the configuration for
event configuration id.- action
action configuration name/id Shows the configuration for
action configuration name/id.
- event
- flags
sub-command -
Control the eventd flags (see eventd.conf(5))
- add
flag Add
flagto eventd.- remove
flag Remove
flagfrom eventd.- test
flag Test if
flagis set.- reset
Reset eventd flags.
- list
Query current eventd flags.
- add
These commands are for the relay plugin, listed here as it is considered a core plugin.
- relay connect
server -
Tell the plugin to connect to the specified
server.servermay be any server configured as a relay (see eventd.conf(5)). - relay disconnect
server -
Tell the plugin to disconnect from the specified
server.servermay be any server configured as a relay (see eventd.conf(5)). - relay status
server Ask the plugin for the server status.
- relay list
Ask the plugin for the list of servers.
Exit status
0-
The command was successful.
With the start command, it will return
0if eventd is already started. 1Failed to parse command line paramaters.
10Impossible to connect to eventd. May be returned if no eventd is started or if our started eventd exited early.
11eventd invocation faild. Either with the start command, or the
--auto-spawnoption.20Command error. No command passed, unknown command or missing command argument.
21Plugin error. No plugin or no control command support in plugin.
30Plugin command error. The plugin command is unknown, or miss an argument.
31Plugin command execution error. The command could not succeed, see eventdctl output for details.
50to59This range is reserved for plugin-specific statuses.
These exit statuses are for the flags command.
- test:
50 The flag is not set.
These exit statuses are for the relay plugin, listed here as it is considered a core plugin.
- status:
50 The plugin has no servers in its list.
- status
:server50 The server has no address to connect to. Can only happen for a server using
DiscoverName=(see eventd.conf(5)).- status
:server51 The server is not connected
- list:
50 The plugin has no servers in its list.
See Also
- eventd core man pages
-
- eventd(1)
eventd daemon command-line options
- eventdctl(1)
eventdctl (control tool) command-line options
- eventd.conf(5)
-
eventd configuration
Contains information about all the event configuration
Plugins distributed with eventd will use the same scheme: eventd-
plugin-namefor their additional eventd command-line options, eventdctl-plugin-namefor their additional eventdctl command-line options, eventd-plugin-name.conf for their configuration, - Plugins man pages
exec plugin: eventd-exec.conf(5)
file plugin: eventd-file.conf(5)
nd plugin: eventdctl-nd(1) eventd-nd.conf(5)
im plugin: eventdctl-im(1) eventd-im.conf(5)
sound plugin: eventd-sound.conf(5)
tts plugin: eventd-tts.conf(5)
notify plugin: eventd-notify.conf(5)
canberra plugin: eventd-canberra.conf(5)