mg_cfgcontainers

Name

mg_cfgcontainers -- Configure the containers known to the NSCLDAQ manager

Synopsis

$DAQBIN/mg_cfgcontainers config-file

DESCRIPTION

Graphical user interface to configure container definitions for the NSCLDAQ manager subsystem. config-file is the path to the configuration database file.

The top level window of this program is a list of container names on the left side and a list of filesystem bindings on the right. Clicking a container name populates the bindings list box with the bindings for the seleted container.

Clicking the Init Script.. button displays the initialization script for the container. The initialization script is a script that is run prior to running every program in the container. It allows you to perform common environment setup operations (e.g. sourcing the correct daqconfig.bash file). The contents of the configuration file are stored in the database so that the initialization script is stable under edits to the original file.

The New... and Edit... bring up a dialog that allows you to define a container. The only difference between the two buttons is that Edit... pre-populates the dialog with the definition of the selected container. You can use this dialog to set the container image file, add/remove bindings, set the container name, and pull in the contents of an initialization script.

When the Ok button is clicked, the definition is saved. If Cancel is clicked, the definition is discarded.

When the dialog is brought up with Edit... Cancel retains the old definition. Furthermore if Ok is clicked but you change the name of the container, a new container defintion is created using that name. This allows you to create a new container definition beginning with the definition of an existing container as a starting point.

When the dialog is brought up with the New..., Cancel makes no changes to the database, Ok saves the new container definition. Take care not to duplicate the name of an existing container.

Note that the Ok button directly modifies the database. This is why there is no Save button on the main window.