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