1 #include "osrf_system.h"
2 #include "opensrf/utils.h"
4 int main( int argc, char* argv[] ) {
7 fprintf(stderr, "Host, Bootstrap, and context required\n");
11 fprintf(stderr, "Loading OpenSRF host %s with bootstrap config %s "
12 "and config context %s\n", argv[1], argv[2], argv[3] );
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" );
21 osrfSystemBootstrap( host, config, context );