Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The filename above will vary depending on what the latest version of the connector is

use this script for auto starting tomcat after reboot

Edit /etc/init.d/tomcat9

...

Code Block
sudo nano /etc/init.d/tomcat9

copy below red colored content into it & exit by pressing ctrl+x then confirm with y for yes. 

# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /
Code Block
languagebash
#!/bin/bash
### BEGIN INIT INFO
# Provides:         tomcat
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Auto-starts tomcat
# pidfile: /var/run/tomcat.pid
case $1 in
start)
sh

### END INIT INFO

case $1 in
start)
sh /usr/share/tomcat9/bin/startup.sh


;;


stop)


sh /usr/share/tomcat9/bin/shutdown.sh


;;


restart)


sh /usr/share/tomcat9/bin/shutdown.sh


sh /usr/share/tomcat9/bin/startup.sh


;;


esac


exit 0

...

Then Execute on Terminal
Code Block
sudo chmod 755 /etc/init.d/tomcat9

Link this script to the startup folders with a symbolic link.Execute these two commands.

Code Block

...

sudo ln -s /etc/init.d/tomcat9 /etc/rc1.d/K99tomcat

...


sudo ln -s /etc/init.d/tomcat9 /etc/rc2.d/S99tomcat

Finally execute

Code Block
sudo systemctl enable tomcat9

More Information


Check Status
Code Block
 sudo systemctl status tomcat9
Manually Stop
Code Block
 sudo systemctl stop tomcat9
Manually Start
Code Block
sudo systemctl start tomcat9

Step 3 - Fineract Platform and Database Setup/Population

...