Most distros have a skeleton script (or something similarly named) in
/etc/init.d.  Poke around in there.

On 11/21/07, Waseem Azhar <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Could anybody tell me how to make tomcat script LSB compliant ? I am using
> Linux High availability project. The heartbeat daemon complaining the
> following:
>
> info: Running /etc/init.d/tomcat  start
> ERROR: Return code 1 from /etc/init.d/tomcat
> CRIT: Giving up resources due to failure of tomcat
> info: Running /etc/init.d/tomcat  stop
> ERROR: Return code 1 from /etc/init.d/tomcat
> info: Retrying failed stop operation [tomcat]
> ResourceManager[4188]: info: Running /etc/init.d/tomcat  stop
> info: Retrying failed stop operation [tomcat]
> ERROR: Resource script for tomcat probably not LSB-compliant.
> WARN: it (tomcat) MUST succeed on a stop when already stopped
>
> All I know about LSB is that you should provide start/stop/status options in
> your script which I did but got confused with return values (RETVAL???, exit
> 0/1).
> I am using tomcat & heartbeat on Fedora7. Please help, or point to any
> useful resource.
>
> Thanks,
> -Azhar
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to