|
|
|
|||||
|
A trivial problem
hi,
I want to start the glacier2router as a service . 1) D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --install OrNot ice.config=config.glacier2 2) D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --start OrNot but failed: Service start pending. Service failed to start. Current state: STOPPED Exit code: 1066 Service specific exit code: 1 Check point: 0 Wait hint: 0 What is wrong with my operations? OS: win2K server Sp4. Thank you very much. OrNot Last edited by OrNot : 07-24-2005 at 11:23 PM. |
|
|||||
|
hi, Bernard,
Do you mean: D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --install OrNot D:\\Ice-2.1.2\\demo \\issue\\Chat4\\ice.config=config.glacier2 D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --start OrNot but also failed. Service start pending. Service failed to start. Current state: STOPPED Exit code: 1066 Service specific exit code: 1 Check point: 0 Wait hint: 0 I can start it as a common application so I think the confing file is readable , isn't it? |
|
|||||
|
hi,
I have checked the config file permissions and make sure that it is readable to administrator(I always log into my pc with Administrator and never changed the file perperties since it was downloaded. Any special considerations are needed?) The event log: Event source: Service Control Manager event ID: 7024 User: N/A Description: The OrNot service terminated with service-specific error 1. BTW: If I run it as a common app., It works very well. ------------------------------------------------------------ D:\Ice-2.1.2\demo\issue\Chat4>glacier2router --Ice.Config=config.glacier2 ------------------------------------------------------------ Thanks . OrNot Last edited by OrNot : 07-25-2005 at 05:53 AM. |
|
||||||
|
Did you also check the "Application" log in the event viewer? There should be more information there about the error.
Also note that the local system account doesn't have the same rights as an administrator, it might not be able to read the config file even if you can as an administrator. Did you try to grant read access to everyone on the configuration file? You can do this with the command line (or the Windows GUI): Code:
C:\> cacls config.glacier2 /G Everyone:R
Hope this helps! Benoit. |
|
|||||
|
Thank you Benoit. The problems have been resolved following your steps. In comparison with your steps, an once not noticed error was :
glacier2router --install OrNot D:\\Ice-2.1.2\\demo \\issue\\Chat4\\ice.config=config.glacier2 should be: glacier2router --install OrNot --ice.config=D:\\Ice-2.1.2\\demo\\issue\\Chat4\\config.glacier2 Thank you again. Thank you for your patience. ICE is nice not only for itself but also for you and your colleagues. Cheers OrNot |
|
|||||
|
Hi, Benoit,
So sorry but I have to trouble you again. I have written a service program and run well in the mode of the console command.But it can not be started as a service when I installed and started it. The output of the system log seems like that in my previous post in this thread. What made me confused is that there isn't any application log output therefore I can not get any hints. Service start pending. Service failed to start. Current state: STOPPED Exit code: 1066 Service specific exit code: 1 Check point: 0 Wait hint: 0 What did I neglect ? How can I debug it ? Thank you so much. OrNot |
|
||||||
|
You could add some logging to your service to see where it's failing to start. You can use the Ice logger to do this (you can get a reference on the logger with the communicator->getLogger() method). You'll also need to configure the logger to log to the system event log by setting the Ice.UseEventLog property to 1.
Hope this helps, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trivial correction | stephan | Patches | 3 | 10-19-2004 06:59 PM |