Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2005
jeylee jeylee is offline
Registered User
 
 
Join Date: Dec 2003
Posts: 7
how to use icepatch as win32 service?

how to use icepatch as win32 service?
thanks
Reply With Quote
  #2 (permalink)  
Old 03-07-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,532
Like other Ice services, the icepatchserver implements the Ice::Service interface described in the Chapter 8.3.2 of the Ice manual (2.0.0). I recommend to read this chapter for more information on how the Ice::Service class works and the various command line options available to services implementing this interface.

Below are steps to register the IcePatch server as a Windows service.

First create a configuration file for the IcePatch server, for example:

Code:
IcePatch.Endpoints=tcp -p 10000 -h 192.168.0.1
IcePatch.Directory=C:\tmpdata
IcePatch.UpdatePeriod=60
IcePatch.BusyTimeout=15
Ice.UseEventLog=1

Please see the IcePatch chapter in the Ice manual for more information on these configuration properties. I assume that the location and name of this configuration file will be C:\icepatch.conf for example.

Then, to register IcePatch as a service, you can use the following command:

C:\Ice-2.0.0\bin> icepatchserver --install IcePatch --Ice.Config=C:\icepatch.conf

This will register the IcePatch server as a Windows service named IcePatch. The IcePatch server will be started with the "--Ice.Config=C:\icepatch.conf" command line option. Note that it's important to use an absolute path for the configuration file.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 03-07-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Note that with the upcoming release, a new IcePatch (called IcePatch2) will be available, which is not compatible with the current one. I highly recommend to use this new version.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ice Storm as Win32 Service? chuatecksiong Help Center 1 05-23-2005 05:15 AM
icebox as win32 service panic Help Center 3 10-19-2004 07:33 AM
How to use IcePatch? weiwei Help Center 7 05-24-2004 12:49 PM
win32 service sniplet? stephan Help Center 8 01-13-2004 03:03 PM
How to use IcePatch? alwayscy1 Help Center 3 10-27-2003 08:40 PM


All times are GMT -4. The time now is 04:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.