Bug 535791 (RHQ-2450) - support "run as <user>" in rhq-server.sh, or in a wrapper script
Summary: support "run as <user>" in rhq-server.sh, or in a wrapper script
Keywords:
Status: CLOSED DUPLICATE of bug 535736
Alias: RHQ-2450
Product: RHQ Project
Classification: Other
Component: Launch Scripts
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-04 02:48 UTC by Mark Burchard
Modified: 2011-12-20 14:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
*nix with SYSV init systems (RHEL using "chkconfig" in particular)
Last Closed: 2010-12-23 14:47:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Mark Burchard 2009-10-04 02:48:00 UTC
There's no reason for the Server to run as root, which is what it will do when called from init at present.  In any case, the runas user should be configurable.  Not sure if this should be a wrapper script along the lines of the Agent, but that would at least make things consistent.  Syncing the current init scripts style with the EAP jboss_init_* script style would be the "right" way to do it.  Something in the "$JBOSS_USER" format.  Also, we should move all the configurable variables to a standardized file along the lines of run.conf.  Basically, there should be no reason to edit either the Agent or Server start/init scripts at all.

I'm not a big fan of the way the runas user is configurable in with the Agent at present.  It's buried in the file and not very intuitive unless you know *nix.  It really should be a variable, at least.
 

Comment 1 Mark Burchard 2009-10-04 17:24:35 UTC
Please close this, duplicate of http://jira.rhq-project.org/browse/RHQ-2400

Comment 2 Red Hat Bugzilla 2009-11-10 21:04:41 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2450


Comment 4 Corey Welton 2010-12-23 14:47:33 UTC
closing - dupe

*** This bug has been marked as a duplicate of bug 535736 ***


Note You need to log in before you can comment on or make changes to this bug.