diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-27 14:05:55 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-27 14:05:55 +0100 |
commit | 1e30a5d2d995ab51cc27c00917cda37ef24295ff (patch) | |
tree | be7004b85546c04ac889d861374c8d4d29b70470 /tests/service | |
parent | 9fb045b62a3e2c9dfc5bb616bb80677e8568c64e (diff) | |
download | wolfbones-1e30a5d2d995ab51cc27c00917cda37ef24295ff.tar.gz wolfbones-1e30a5d2d995ab51cc27c00917cda37ef24295ff.tar.bz2 |
foreground mode of service, but without TERMINATE event
Diffstat (limited to 'tests/service')
-rw-r--r-- | tests/service/testservice.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/service/testservice.c b/tests/service/testservice.c index 360bb53..dd2cddd 100644 --- a/tests/service/testservice.c +++ b/tests/service/testservice.c @@ -79,6 +79,7 @@ void __cdecl _tmain( int argc, TCHAR *argv[] ) { printf( " /help show this help page\r\n" ); printf( " /install install the service\r\n" ); printf( " /remove remove the service\r\n" ); + printf( " /foreground run as console application\r\n" ); } else if( strcasecmp( argv[1], "/install" ) == 0 ) { wolf_service_params_t params; params.service_name = SERVICE_NAME; @@ -86,6 +87,8 @@ void __cdecl _tmain( int argc, TCHAR *argv[] ) { (void)wolf_service_install( params ); } else if( strcasecmp( argv[1], "/remove" ) == 0 ) { (void)wolf_service_remove( SERVICE_NAME ); + } else if( strcasecmp( argv[1], "/foreground" ) == 0 ) { + service_main( argc, argv ); } else { fprintf( stderr, "Illegal option '%s'\r\n", argv[1] ); } |