# Example for dotting & viewing:
# dot -Tpng -o archiveconfig_serve.png archiveconfig_serve.dot && open archiveconfig_serve.png

digraph ArchiveConfigServe
{
    compound=true;
    node [ shape=box ]; 

    mailbox [ label="mailbox" ];
    archiveconfig [ label="archiveconfig.xml" ]; 

    update_archive_tree [ shape=ellipse, label="update_archive_tree.pl" ];
    archiveconfig -> update_archive_tree [ style=dotted ];

    subgraph cluster1
    {
        label="Directory tree with copy of data";
        copy [ label="copy on data server:\nSYS/sub/2005/*\lSYS/sub/2006\l...\l\land indices" ];

    }
    
    mailbox -> update_server [ style=dotted ];
    update_archive_tree -> copy [ lhead=cluster1 ];

    update_server [ shape=ellipse, label="update_server.pl" ]; 
    update_indices [ shape=ellipse, label="update_indices.pl" ]; 
    update_server -> copy [ lhead=cluster1 ];
    update_server -> update_indices;
    update_indices -> copy [ lhead=cluster1 ];

    archiveconfig -> update_server [ style=dotted ];
    archiveconfig -> update_indices [ style=dotted ];

    subgraph cluster2
    {
        label="Web Server (CGI Host)";
        dataserver [ shape=ellipse, label="ArchiveDataServer" ];
        serverconfig [ label="serverconfig.xml" ];
    }
    copy -> dataserver [ style=dotted ];
    update_server -> serverconfig [ lhead=cluster2 ];
    serverconfig -> dataserver [ style=dotted ];
}
