module Netplex_config:Read the configuration filesig
..end
exception Config_error of string
val read_config_file : string -> Netplex_types.config_file
val read_netplex_config : Netplex_types.parallelization_type ->
Netplex_types.logger_factory list ->
Netplex_types.workload_manager_factory list ->
Netplex_types.processor_factory list ->
Netplex_types.config_file -> Netplex_types.netplex_config
netplex {
controller {
...
logging {
...
};
};
service {
name = "name_of_service";
protocol {
name = "name_of_protocol";
lstn_backlog = <n>;
lstn_reuseaddr = <bool>;
so_keepalive = <bool>;
address {
type = "local";
path = "socketname";
};
address {
type = "internet";
bind = "bind_address:port";
};
...
};
processor {
type = "type_of_processor";
...
};
workload_manager {
type = "type_of_manager";
...
};
}
}
The service
section may also contain two parameters user
and
group
. They instruct the service container to drop root privileges
and to become the configured user and group. Note that this is only
possible in multi-processing mode.