YoYo 0.1 - Simple Network Up/Down Manager


I run a small network with several Linux boxes. As a matter of convenience, it is useful to have each box mount each of the others' file systems. The tedious bit is remembering to unmount one machines file system from all the other machine before shutting it down. Thus was YoYo born.

YoYo is a small daemon process which runs on each machine. When it starts, it broadcasts a message on the network, indicating that it is starting. Instances of YoYo which are already running note this, and send a message back to the new instance (indicating that they are up). Similarly, when an instance of YoYo stops, it broadcasts the fact on the network, so that the other instances know about it.

Each time an instance of YoYo receives a message from some other instance, then, if the state of the sender has changed, the receiving instance executes one or more commands.

So, given that my machines are quaking, sandford and tiny, when tiny comes up, quaking and sandford will both NFS mount tiny's file system, and dismount when tiny goes down; and similarly for quaking and sandford.

I would quite like a Windoze version at well, at least one that sends status, even if it cannot execute any commands. Then, it would be possible to automate smbmount on the Linux boxes. Watch this space....

Click here to download the .tgz distribution.

yoyo is also available as a RPMs for RedHat 5.2 (should be OK for 5.1 as well):


mike@quaking.demon.co.uk