Archived

This forum has been archived. Please start a new discussion on GitHub.

Problem using icegrid as windows service

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?

Thanks,

Comments

  • benoit
    benoit Rennes, France
    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.

    Cheers,
    Benoit.
  • bernard
    bernard Jupiter, FL
    I also recommend to read the WINDOWS_SERVICE.txt file in the root directory of your Ice installation.

    Best regards,
    Bernard