I believe that this could be done with dsh (the distributed shell) too. http://packages.debian.org/testing/net/dsh.html
It needs a remote shell like ssh and rsh though. Once install, just define the group of servers, i.e. clusters, and then when it is time to issue kill -HUP signal to qmail[-send], just issue the command: dsh -g clusters killall -HUP qmail-send or dsh -g clusters svc -h /service/qmail Hendry D. Lee > Hey guys! I had a brainstorm the other night when I was talking with Ken. > Why not use tcpserver as a wrapper to hup qmail-send on all the smtp boxes > in a cluster? > > I've played with it, and it works. Here's how I did it: > > Standard disclaimer -- This works for me in a cluster of 7 Sun's, 3 of which > handle SMTP, and the rest do POP and IMAP. No warranties, blah blah blah > > First, I'm running qmail under daemontools, so my restart script is designed > around it, but any shell script will work... [...]
