]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/src/libstack/opensrf.c
403a3d6dfa04c147260a6906fa3ac92b66a11362
[Evergreen.git] / OpenSRF / src / libstack / opensrf.c
1 #include "osrf_system.h"
2
3 int main( int argc, char* argv[] ) {
4
5         if( argc < 4 ) {
6                 fprintf(stderr, "Usage: %s <host> <bootstrap_config> <config_context>\n", argv[0]);
7                 return 1;
8         }
9
10         fprintf(stderr, "Loading OpenSRF host %s with bootstrap config %s "
11                         "and config context %s\n", argv[1], argv[2], argv[3] );
12
13         char* host = strdup( argv[1] );
14         char* config = strdup( argv[2] );
15         char* context = strdup( argv[3] );
16
17         init_proc_title( argc, argv );
18         set_proc_title( "OpenSRF System" );
19
20         osrfSystemBootstrap( host, config, context );
21
22         free(host);
23         free(config);
24         free(context);
25
26         return 0;
27 }
28
29