Automatic installation of JON agent as a system owned service

Solution Unverified - Updated -

Issue

  • When the agent has been configured for the first time, all configuration is stored in java preferences in the windows registry. The problem with this is that java stores preferences under HKEY_CURRENT_USER in the registry. This means that the preferences can only be accessed by the current user which means we have to install the service as the user who runs the automatic installation script, as the SYSTEM user (who services usually use as run as user) is unable to access the the configuration in the registry. Does this mean that we are unable to create a fully automated installation script, as we do not want the script to need a password to run.

  • What is the way to get the agent service to run under as SYSTEM user and still have access to its configuration?

  • I want to install the service using the SYSTEM user. But when i do the service has no access to the java preferences residing in the windows registry, as these are placed under the HKEY_CURRENT_USER, which the SYSTEM user can not access. I can see this as the configuration key HKEY_CURRENT_USER\Software\JavaSoft\Prefs\rhq-agent\default is not created until the service is run with the privileges of a local user.

Environment

  • JBoss Operations Network (JON) 3.1.x
  • Windows Operating System

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.