|
From: Swapnil S. <swa...@ya...> - 2006-08-07 06:11:56
|
Ok I figured out the problem. And you will be surprised to hear what it is :)
I had created the structure under directory called "Linux Release Candidate" like this:
Linux Release Candidate
- bin
- conf
- lib
The problem is with the directory name. It seems the script does not support directory names with spaces. I changed this to "Daemonized" and the script ran successfully. It seems there is a bug in the script.
Thanks for your help.
Swapnil.
----- Original Message ----
From: Leif Mortenson <le...@ta...>
To: Wrapper User List <wra...@li...>
Sent: Sunday, August 6, 2006 10:21:00 PM
Subject: Re: [Wrapper-user] Startup script does not give ANY output :(
Swapnil,
Please post to the list rather than to me directly.
The script normally works, you have verified that it is being parsed
as a script. If you
are not seeing the usage, I would guess that there is a syntax error
someplace that is
causing the script to exit.
Obtain the original script, then do a diff. Make sure that all of
the modifications in
your version are expected.
If that doesn't work, add more echo statements to figure out where
the script is
going wrong.
Cheers,
Leif
Swapnil Shinde wrote:
> Sorry forgot to mention the OS details.
> CentOS - LINUX 2.6.9 with JRE 1.5.0_6 installed.
Swapnil Shinde wrote:
> Hi Lief,
> Thank you for the prompt reply. I know that this script takes in
> different arguments. But when I do not specify any arguments I expect
> it to give me USAGE as you mentioned below. I tried running it with
> console argument too but it just does not give any output :(
>
> I added a echo line after copyright and it did print the line. Dont
> know why it is not working :(
>
> Any idea?
>
> Swapnil.
>
> ----- Original Message ----
> From: Leif Mortenson <le...@ta...>
> To: Swapnil Shinde <swa...@ya...>;
> wra...@li...
> Sent: Sunday, August 6, 2006 6:37:47 PM
> Subject: Re: [Wrapper-user] Startup script does not give ANY output :(
>
> Shinde,
> What version and platform are you running?
>
> The script requires that a command be passed as the first parameter
> as follows:
>
> ./bin/startHSServer console
>
> The thing is that if you omit the command as you appear to be doing,
> you should
> be getting an error message telling you how to use the script:
>
> Usage: bin/startHSServer { console | start | stop | restart | status |
> dump }
>
> Is there any possibility that your script has been corrupted
> somehow? Does the file
> have windows line feeds, etc.?
>
> Try adding the following immediately after the copyright in the
> shell script.
> echo "test"
>
> If that shows up then you at least know that the script is being run
> as a script.
>
> Cheers,
> Leif
>
>
>
> Swapnil Shinde wrote:
> > Hi Guys,
> > This is the first time I am using this wrapper. I am having a very
> > basic problem. I have followed all the steps for integration accroding
> > to method 1. But when I start my script it gives NO output atall.
> >
> > ./bin/startHSServer
> > <NO-OUTPUT>
> >
> > No log file is created. I have used CHMOD 777 for the all files and
> > directoties. However I am successfully able to run the my application
> > by DIRECTLY executing the wrapper as:
> > ./bin/wrapper -c ../conf/wrapper.conf.
> >
> > I have no idea as to why the start script is not working though. Here
> > is my script. Please help. Thanks.
> >
> > #! /bin/sh
> <snip>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|