Chmod logs directories before restarting.