Hey there!
Sorry to always speak about services... I'm still rather satisfied with your implementation but I have to issues/ suggestions:
* can you please add a const member function which returns whether the application is being run as a service or not? This should be rather straight forward, all that should be necessary is a boolean flag that gets set in servicemain (or not in case the app isn't being run as a service).
* an --appmode parameter could be introduced, as VNC does in order to specify that the application should be run as a (console) app. This could make things clearer as the app isn't being run with this parameter when being started from the scm!
and for the sake of completeness what I suggested before:
* the introduction of to const (abstract) member functions which return the service name respectively the service description so that one doesn't have to specify those values on the command line when using --install/ --uninstall parameters.
regs,
Stephan

Reply With Quote