Imported Upstream version 2.5.1
[ossec-hids.git] / src / win32 / service-start.c
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All rights reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11        
12
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string.h>
16 #include <unistd.h>
17
18
19 /* Setup windows after install */
20 int main(int argc, char **argv)
21 {
22     printf("%s: Attempting to start ossec.", argv[0]);
23
24     system("net start OssecSvc");
25     
26     system("pause");
27     return(0);
28 }