Menu

rshdown

Dirk Krause
← Previous ↑ Home → Next

rshdown — Remote shutdown

Description

If a server is shut down by the uninterruptable power supply (UPS) it might be a good idea to shut down all the clients requiring server resources before shutting down the server itself as the clients may hang if the server is not available.
Especially NFS clients should be shut down before shutting down the NFS server.

Rshdown is:

  • A SysV style daemon waiting for a shutdown data packet and
  • a client to send a shutdown data packet to one or multiple rshdown daemons.

The shutdown sender (the client) and the shutdown recipients (daemons) have a pre-shared secret (a file containing up to 1460 bytes of random data distributed between the involved computers on a secure channel).

To initiate a remote shutdown the sender reads the data from it's copy of the file and sends an UDP packet containing the data to the recipients.

The recipients wait for incoming UDP data packets on a specified port. Incoming packets on this port are checked for sender address, sender port and packet contents. On successful check the recipient shuts down.


Manual

See the [rshdown manual] for the full documentation of the program.


← Previous ↑ Home → Next

Related

Wiki: Home
Wiki: rshdown manual

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.