Reputation: 5183
What is the difference between starting TOMCAT6 on an Ubuntu system using the following methods:
/usr/share/tomcat6/bin/startup.sh
sudo /etc/init.d/tomcat6 start
Upvotes: 0
Views: 14028
Reputation: 120318
You can use either one. I use startup.sh when I need to manage tomcat myself. I use the /etc/init.d script when I want to run tomcat as a daemon/service.
Upvotes: 1
Reputation: 363
The init.d script is the startup script for the system service, that internally should call to /usr/share/tomcat6/bin/startup.sh
, that should be the tomcat start script.
If you want to start tomcat when the machine is booted, you should use the update-rc.d
command to add it to the list of services that will be started at boot time.
Upvotes: 2