1 /*
2  *
3  *      Copyleft (c) 2003 Alexander Ilyin
4  *	Copyleft (c) 2001 Grumbler <g@grumbler.org>
5  *
6  *	Copyright (c) 1999 RISS-Telecom Networking Center
7  *
8  *	Copyright (c) 1993 The CAD lab of the
9  *	Novosibirsk Institute of Broadcasting and Telecommunication
10  *
11  *
12  * Redistribution and use in source forms, with and without modification,
13  * are permitted provided that this entire comment appears intact.
14  * Redistribution in binary form may occur without any restrictions.
15  *
16  * THIS SOFTWARE IS PROVIDED ``AS IS'' WITHOUT ANY WARRANTIES OF ANY KIND.
17  */
18 
19 /*	main.c - tcp/udp data traffic saver to the PostgreSQL database	*/
20 
21 #include "commondb.h"
22 #include <libpq-fe.h>
23 
24 int
main(argc,argv)25 main(argc, argv)
26 	int argc;
27 	char **argv;
28 {
29 
30 	int retval = 0;
31 
32 	program_name = stripdir(argv[0]);
33 	initParams();
34 
35 	moveTheCurentLog();
36 
37 	retval =  processTheSpool();
38 
39 
40 	if(retval == 0) {
41 		printf("Log successfuly was saved!\n");
42 	} else {
43 		printf("Errors was found during execution\n");
44 	}
45 
46 	exit(retval);
47 }
48 
49 
50 
51