Home Help Center

Problem using icegrid as windows service

Vivien DelageVivien Delage Member Vivien DelageOrganization: Vermont Harding Finance Technologies Ltd.Project: TREX-3
I am trying to set up an icegrid node as a windows service.

For that, I used the command:
icegridnode --install IceGridService --Ice.Config=config.grid

However, when starting the service will have as working directory: "C:\WINDOWS\system32". Because of that, it will not be able to retrieve the config file neither will it find the db/registry and db/node directory which are not situated in "C:\WINDOWS\system32".

So I would like to specify another working directory when starting my icegridnode. I looked at the Ice documentation but did not find anything about how to do that. Is there any way to configure this working directory within icegrid ore when registering the service?



  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Vivien,

    No, it's not possible to change the current working directory of the IceGrid node (or any other Ice services). You should use absolute paths for the IceGrid node configuration file and node data directory.

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    I also recommend to read the WINDOWS_SERVICE.txt file in the root directory of your Ice installation.

    Best regards,
Sign In or Register to comment.