UDP commands

The page describes the commands supported by Liberator’s administration UDP interface.

For information on activating the UDP interface, see UDP configuration.

For information on how to send UDP commands to liberator, see Sending UDP commands to Liberator.

shutdown

Since: Liberator 7.1.1

Syntax:

  • shutdown <grace-period-end> "<reason>" (from Liberator 7.1.1)

  • shutdown <grade-period-start> <grade-period-end> "<reason>" (from Liberator 7.1.5)

Parameter Type Description

grace-period-start

integer/string

The date and time of the beginning of the grace period, specified as a relative timespec (number of seconds from 'now') or an absolute timespec (a local date and time in the format %Y-%m-%dT%H:%M). Available from Liberator 7.1.5.

grace-period-end

integer/string

The date and time of the end of the grace period, specified as a relative timespec (number of seconds from 'now') or an absolute timespec (a local date and time in the format %Y-%m-%dT%H:%M).

reason

string

Descriptive text to enter in Liberator’s log.

The string must be quoted. If you use udpsend from the command line to send the UDP message, then you must escape the quotes or the shell will interpret and remove them:

$ udpsend -s liberator.example.com shutdown 3600 \"Graceful shutdown initiated\"

Initiates a graceful shutdown of Liberator. During a graceful shutdown, existing connections are still honoured, but no new client connections are accepted. Liberator will shutdown automatically either when all clients have disconnected, or at the conclusion of the grace period; whichever happens first.

StreamLink clients can subscribe to Liberator’s /SYSTEM/NOTIFY/STATE subject to be notified when a graceful shutdown has been initiated. For more information, see Liberator system subjects.

A graceful shutdown can be initiated in two other ways:

  • Send a Linux SIGTERM signal to Liberator. Requires the configuration item sigterm-shutdown-options to be set to true.

  • Execute the Java Monitoring Extensions (JMX) operation 'shutdown' on the rttpd.server.liberator MBean in the Caplin Management Console.

Examples:

  • shutdown 3600 "Shutting down for maintenance"

  • shutdown 2018-07-01T23:59:59 "Shutting down for maintenance"

shutdown abort

Aborts a graceful shutdown. Has no effect if no graceful shutdown has been initiated.

You can also abort a graceful shutdown by executing the Java Management Extensions (JMX) operation 'shutdown-abort' on the rttp.server.liberator MBean in the Caplin Management Console.

Since: Liberator 7.1.1

Syntax: shutdown abort


See also: