|
From: Swapnil S. <swa...@ya...> - 2006-08-07 01:20:54
|
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 # # Copyright (c) 1999, 2006 Tanuki Software Inc. # # Java Service Wrapper sh script. Suitable for starting and stopping # wrapped Java applications on UNIX platforms. # #----------------------------------------------------------------------------- # These settings can be modified to fit the needs of your application # Application APP_NAME="HSServer" APP_LONG_NAME="HS Login Server" # Wrapper WRAPPER_CMD="./wrapper" WRAPPER_CONF="../conf/wrapper.conf" # Priority at which to run the wrapper. See "man nice" for valid priorities. # nice is only used if a priority is specified. PRIORITY= # Location of the pid file. PIDDIR="." # If uncommented, causes the Wrapper to be shutdown using an anchor file. # When launched with the 'start' command, it will also ignore all INT and # TERM signals. #IGNORE_SIGNALS=true # If specified, the Wrapper will be run as the specified user. # IMPORTANT - Make sure that the user has the required privileges to write # the PID file and wrapper.log files. Failure to be able to write the log # file will cause the Wrapper to exit without any way to write out an error # message. # NOTE - This will set the user which is used to run the Wrapper as well as # the JVM and is not useful in situations where a privileged resource or # port needs to be allocated prior to the user being changed. #RUN_AS_USER= # The following two lines are used by the chkconfig command. Change as is # appropriate for your application. They should remain commented. # chkconfig: 2345 20 80 # description: @app.long.name@ |