Guten Tag Roger Karis,
am Donnerstag, 22. Januar 2009 um 20:58 schrieben Sie:
> these past days I looked at possibilities of making the integration
> daemon run as a genuine windows service. Today I got it working, so I'd
> like to contribute the proof-of-concept here. The attached script
> contains both the service-code and functions to install and remove the
> service.
Nice work, I used SCMBug as a service with srvany, so I'm interested
about if your resolution has the same drawbacks.
> sub Callback_Stop {
> EventLog("$svcinfo->{display} stopping");
> Win32::Daemon::State( SERVICE_STOPPED );
> Win32::Daemon::StopService();
> }
This looks like that if the deamon ist stopped there's no indication
if the deamon processes any messages or else, it's just terminated,
right? That's the case with srvany of course, which just kills
the perl process for SCMBug, but at least with your resolution one is
once able to detect if the deamon is processing something. Or how does
StopService work? The docs only states "This will instruct the service
to terminate.", but I can't the any former event handler or something
like that, where the deamon could get the info that he may stop
working in a "clean" way.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
Telefon: Potsdam: 0331-743881-0
E-Mail: [email protected]
Web: http://www.am-soft.de
AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users