1 #include <opensrf/osrf_system.h>
2 //#include <opensrf/osrf_hash.h>
3 //#include <opensrf/osrf_list.h>
5 int main( int argc, char* argv[] ) {
8 fprintf(stderr, "Usage: %s <host> <bootstrap_config> <config_context>\n", argv[0]);
12 /* these must be strdup'ed because init_proc_title / set_proc_title
13 are evil and overwrite the argv memory */
14 char* host = strdup( argv[1] );
15 char* config = strdup( argv[2] );
16 char* context = strdup( argv[3] );
18 init_proc_title( argc, argv );
19 set_proc_title( "OpenSRF System-C" );
21 int ret = osrfSystemBootstrap( host, config, context );
26 "Server Loop returned an error condition, exiting with %d",