1 #include "osrf_system.h"
5 int main( int argc, char* argv[] ) {
8 fprintf(stderr, "Usage: %s <host> <bootstrap_config> <config_context>\n", argv[0]);
12 fprintf(stderr, "Loading OpenSRF host %s with bootstrap config %s "
13 "and config context %s\n", argv[1], argv[2], argv[3] );
15 /* these must be strdup'ed because init_proc_title / set_proc_title
16 are evil and overwrite the argv memory */
17 char* host = strdup( argv[1] );
18 char* config = strdup( argv[2] );
19 char* context = strdup( argv[3] );
21 init_proc_title( argc, argv );
22 set_proc_title( "OpenSRF System" );
24 osrfSystemBootstrap( host, config, context );