---
name: "tirex-send"
section: "1"
platform: "linux"
package: "tirex"
version: "0.7.1-3+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tirex-send"
---

# tirex-send(1)

send messages to a tirex daemon

## NAME

tirex-send - send messages to a tirex daemon

## SYNOPSIS

tirex-send \[OPTIONS\] TYPE \[KEY=VALUE ...\]

## OPTIONS

- **-h**, **--help**

  Display help message.

- **-d**, **--debug**

  Run in debug mode. You'll see the actual messages sent and received.

- **-c**, **--config=DIR**

  Use the config directory DIR instead of /etc/tirex.

- **-t**, **--to=DESTINATION**

  Talk to DESTINATION, which can be 'master' (default), 'syncd', or a port number.

- **-w**, **--wait=SECONDS**

  Wait SECONDS for the answer after sending the message. Default is 5 seconds. If set to 0, don't wait for an answer at all. This is the default when the destination is set to syncd.

## DESCRIPTION

tirex-send sends a message through a UDP socket to a tirex daemon running on the local machine and waits for the answer. It can be used to check whether a daemon is running, activate debugging in the daemon, send a render request, etc.

Messages are normally sent to the tirex-master daemon, but can also be sent to a sync daemon or one of the rendering backends.

You have to give the TYPE of the message on the command line and optionally some fields in the format KEY=VALUE.

## MESSAGES FOR MASTER

The following messages can be send to a master daemon:

- ping

  Check whether server is alive.

- debug

  Activate debugging in the daemon.

- nodebug

  Deactivate debugging in the daemon.

- quit

  Quit server now (unclean!).

- shutdown

  Clean shutdown (no yet implemented XXX)

- reload\_config

  Reload renderer and map config.

- reset\_max\_queue\_size

  Reset max queue size indicator in shared memory.

- stop\_rendering\_bucket

  Stop feeding jobs from a bucket to the renderer. Currently rendering jobs are unaffected. Give the name of the bucket as "bucket=NAME".

- continue\_rendering\_bucket

  Continue rendering jobs from this bucket. Give the name of the bucket as "bucket=NAME".

- metatile\_enqueue\_request

  Add metatile to job queue.

- metatile\_remove\_request

  Remove job from queue.

## MESSAGES FOR SYNCD

The following messages can be send to a syncd server:

- metatile\_render\_request

  Syncs the metatile file.

## MESSAGES TO BACKENDS

The following messages can be send to a rendering backend:

- metatile\_render\_request

  Renders the metatile requested.

## FILES

- */etc/tirex/tirex.conf*

  The configuration file.

## DIAGNOSTICS

tirex-send returns

- 0 if the message was answered with 'ok',

  - 1 if the message was answered with an error,

  - 2 if the error was 'unknown\_message\_type',

  - 3 if the message could not be sent or if there was a timeout waiting for the answer,

  - 4 if there was an error parsing the command line.

  ## SEE ALSO

\<http://wiki.openstreetmap.org/wiki/Tirex\>

## AUTHORS

Frederik Ramm \<frederik.ramm@geofabrik.de\>, Jochen Topf \<jochen.topf@geofabrik.de\> and possibly others.
