LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 03-08-2004, 02:31 AM   #1
jmartinph
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0


I am having a problem auto-starting TOMCAT on init/boot in Mandrake 8.0
I still have to login to my account ang start the tomcat init script (shown below) to be able to bring the TOMCAT server up. I also checked the Control Service Activity under linuxconf -> control panel and tomcat script is listed there as Automatic with run Level 2, 3, 5 but still
tomcat doesn't run on startup. Anybody here? Very much appreciated.. thanks


jun

Code:
# tomcat -- init script
#	This is the init script for starting up the 
#		Jakarta Tomcat server
#
# chkconfig: 345 91 10 
# description: Starts and stops the Tomcat daemon.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

tomcat=/usr/local/jakarta-tomcat
startup=$tomcat/bin/startup.sh
shutdown=$tomcat/bin/shutdown.sh
#export JAVA_HOME=/usr/local/jdk  -- i have this already....

start(){
	echo -n $"Starting Tomcat service: " 
	# Change to tomcat user to start server. Don't run as root.
	#daemon -c 
	$startup
	RETVAL=$?
	echo
}

stop(){
	action $"Stopping Tomcat service: " $shutdown	
	RETVAL=$?
	echo
}

restart(){
    stop
    start
}


# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        # This doesn't work ;)
	status tomcat
	;;
  restart)
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 1
esac

exit 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 Linux Mandrake 10.2 init (SysV) startup script RomanG Mandriva 0 06-13-2005 01:15 AM
tomcat startup on boot malbery Linux - Software 3 01-27-2005 05:10 PM
startup Tomcat 5.5.4 in Fedora 2 treotan Linux - Newbie 1 12-03-2004 10:46 PM
How to set up tomcat 5 to boot at startup ? jorgepinho Linux - Newbie 1 11-15-2004 08:13 AM
Tomcat 4.1.30 boot init problem on 2.4.18-18 kernal - zeta111 Linux - Software 0 03-29-2004 11:55 AM


All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration