SHUTDOWN NOW (Myth Protocol)

From MythTV Official Wiki
Jump to: navigation, search

SHUTDOWN_NOW

Arguments

Command arguments: none

List arguments: <shutdown command>

Examples

Command:

22      SHUTDOWN_NOW[]:[]halt

Description

Request that a slave backend shutdown with the given command. This command will have no affect on the master backend.

Caution: a slave backend will execute any command it is given using SHUTDOWN_NOW. For example, sending the following message to a slave backend results in the log snippet after it:

35      SHUTDOWN_NOW[]:[]ping -c 3 10.0.1.1
2011-03-03 21:26:07.245 Going down now as of Mainserver request!
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.
64 bytes from 10.0.1.1: icmp_req=1 ttl=64 time=0.082 ms
64 bytes from 10.0.1.1: icmp_req=2 ttl=64 time=0.067 ms
64 bytes from 10.0.1.1: icmp_req=3 ttl=64 time=0.079 ms

--- 10.0.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.067/0.076/0.082/0.006 ms

Returns

The backend will not respond to this message.