This allows users to specify a prefix for a start script execution initiated by the Start or Restart operation. The most common use case is needing to run AS7 as a different user than the RHQ Agent, in which case the prefix would be e.g. "sudo -u jboss" to run AS7 as the jboss user.
This should not take too long to implement, as we already have generic support for prefixes in ProcessExecutionUtility.createProcessExecution() in the plugin-api module.

Verified on Version: 3.1.0.CR1 Build Number: 4bc4270:1b85993
Started EAP6 instance with a different user than the agent (sudo -u skondkar). The instance is detected in autodiscovery and the 'Start Script Prefix' property in 'Inventory->Connection Settings' prepopulated with the value '/usr/bin/nohup /usr/bin/sudo -u skondkar -g skondkar'.
Please refer the attached screenshot.

Hi Ian,
I Started agent with user 'testuser' and EAP6 instance with user 'skondkar'.
The operations start and restart worked and AS7 instance is running as skondkar:skondkar when I inserted below line in /etc/sudoers file:
testuser ALL=(skondkar:skondkar) NOPASSWD: /store/EAP/EAP6/EAP6-ER8/jboss-eap-6.0/bin/standalone.sh