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