00001 /*****************************************************************************\ 00002 * * 00003 * Name : simple_service * 00004 * Author : Chris Koeritz * 00005 * * 00006 ******************************************************************************* 00007 * Copyright (c) 2000-$now By Author. This program is free software; you can * 00008 * redistribute it and/or modify it under the terms of the GNU General Public * 00009 * License as published by the Free Software Foundation; either version 2 of * 00010 * the License or (at your option) any later version. This is online at: * 00011 * http://www.fsf.org/copyleft/gpl.html * 00012 * Please send any updates to: fred@gruntose.com * 00013 \*****************************************************************************/ 00014 00015 #include "simple_service.h" 00016 00017 #include <basis/istring.h> 00018 #include <basis/portable.h> 00019 00020 #include <stdio.h> 00021 #include <stdlib.h> 00022 #include <process.h> 00023 #include <tchar.h> 00024 00025 #include <service_ext/service_ext_library.cpp> 00026 00027 simple_service::simple_service() 00028 : service_root("SimpletonService", "Simpleton Pieman Service", string_array()) 00029 { 00030 } 00031 00032 simple_service::~simple_service() 00033 { 00034 //hmmm: any service shutdowns needed? 00035 } 00036 00037 void simple_service::perform_service(int argc, char **argv) 00038 { 00039 00040 //do the thing that we do. 00041 00042 //may want to report status periodically. 00043 00044 } 00045
1.5.1