Is it possible to run Windows service on Wine? If it is, how do I start a service? I am running Wine on Fedora machine. Thanks. Michael
On Wed, Apr 30, 2008 at 7:05 AM, MichaelZ <wineforum-user at winehq.org> wrote:> Is it possible to run Windows service on Wine?Yes.> If it is, how do I start a service?wine net start servicename This only works in recent versions of Wine. Which version are you using?
I installed my service at c:\MyCompany\MyService.exe. And I try to run the service in Terminal window: wine net start "c:\MyCompany\MyService.exe" I got the following error messages: [maker at fc6-dev ~]$ wine net start "c:\MyCompany\MyService.exe" fixme:advapi:RegisterEventSourceA ((null),"ImgLM"): stub fixme:advapi:RegisterEventSourceW (L"",L"ImgLM"): stub fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 300, std (d/m/y): 26/10/2008, dlt (d/m/y): 6/04/2008 Could not get handle to service. The wine version is 0.9.60. Thanks. Michael
Thanks for the reply. I have checked registry settings and they seemed to be correct, and Start setting is set to 2 (Automatic). The service is started up once I open Registry Editor from Terminal window, but once I shut down Registry Editor, the service is also shut down. Here are the messages after I shut down Registry Editor: [root at fc6-dev ~]# regedit fixme:advapi:RegisterEventSourceA ((null),"ImgLM"): stub fixme:advapi:RegisterEventSourceW (L"",L"ImgLM"): stub Any ideas? Thanks. Michael
OK, but I need to run a service on Linux machine even without any Wine application running. Because the service allows client machine to access it from different machines. If this feature is by design, I think this should be changed as in my case I only want the service running on Linux machine. Thanks. Michael
On Wed, Apr 30, 2008 at 12:17 PM, MichaelZ <wineforum-user at winehq.org> wrote:> OK, but I need to run a service on Linux machine even without any Wine > application running. Because the service allows client machine to access > it from different machines.That should be fine.> If this feature is by design, I think this should be changed as in my case I only want the service running on Linux machine.What feature are you talking about? You should be able to run the service as a normal user even when nobody is logged in. You may need to provide a dummy X server to make Wine happy, as it seems to have trouble running without X these days (grrr). You might have to tell us a bit more about your service for us to advise you correctly... - Dan
This is the feature I was talking about: "That's by design. Wine kills all services and drivers when all programs exited. Or at least it should do that. You can not just run a service by itself. It wasn't ever an intention to have some parts of Wine to run unattended. Not yet at least."
In soviet WINE, Notepad SERVICES you o_o... Just kidding :P On Wed, Apr 30, 2008 at 3:46 PM, Dan Kegel <dank at kegel.com> wrote: > > On Wed, Apr 30, 2008 at 12:54 PM, MichaelZ <wineforum-user at winehq.org> wrote: > > This is the feature I was talking about: > > > > "That's by design. Wine kills all services and drivers when all programs exited. Or at least it should do that. > > You can not just run a service by itself. It wasn't ever an intention to have some parts of Wine to run unattended. Not yet at least." > > You can get around this by running any normal > app, say, Notepad. That will keep the services alive. > - Dan > >
DARKGuy wrote:> My guess is that he's trying to run a Windows service inside WINE > (duh!) but thinking about it the Windows way. I don't think he knows > how to do that, Dan, or else he could've made a random user or > something that will start such service in a dummy X server and be > happy with it. >Ok, I don't know how to do that. Would you tell me how? Thanks.
MichaelZ wrote:> > Ok, I don't know how to do that. Would you tell me how? Thanks.Start a notepad, then start your services. And don't close notepad. That's all you can do now.
Thank you all for the help. My initial problem is that after I install the service, it does not run. And the reason is that by design, if no Wine application is running, then all services are killed. If I start notepad first, then install my service, the service is running and working just fine. It would be better if I don't have to run another Wine application for my service to start, but that is what I have to do now. I hope this would change in the future. Regards, Michael