l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 23 16:09

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Strange server behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Strange server behavior

Here's the script:


export JAVA_HOME=/usr/java
export J2EE_HOME=/usr/j2ee
export JRUN_HOME=/space/usr/jrun

case "$1" in
  export jrun_params="admin default"
  echo "jrun $cmdtext, using servers: ${jrun_params}"
  echo "jrun $cmdtext"
  echo "Usage: $0 {start|stop|restart}"
  exit 1

/usr/bin/su cfusion -c "${JRUN_HOME}/bin/jrun $1 $jrun_params 2>&1
1>${JRUN_HOME}/logs/bootup.log &"

Not much to it.  And I transcribed the last line wrong earlier.

> On Wed, Apr 23, 2003 at 02:50:05PM -0700, Richard Crawford wrote:
>> > Check how they are called in the init.d script with the argument of
>> "start", and compare it with how you invoke it manually.
>> As far as I can tell, they're the same.
>> >From the command line, I do (as user cfusion)...
>> $ /space/usr/jrun/bin/jrun start admin
>> In the script, it's
>> /usr/bin/su cfusion "${JRUN_HOME}/bin/jrun $1 $jrun_params 2>&1
>> where $JRUN_HOME = /space/usr/jrun and $jrun_params = admin.
> ... I would still really like to see the actual scripts.
>> /usr/bin/su cfusion "${JRUN_HOME}/bin/jrun $1 $jrun_params 2>&1
> even if you correct this command by putting a close double quote... i
> it's not correct.  Need a -c, like...
>   su user -c "command"
> --
> GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
> Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
http://www.mossroot.com http://www.stonegoose.com
"It is only with our heart that we can see clearly.  What is essential is
invisible to the eye."  --Antoine de Saint Exupery

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.