log rotation

This is a partial fix for bug #1078213, rotating the machine-x logs.  It won't rotate the allmachines.log, since that is written by rsyslog, and will require a separate patch.