atmanager

Apache Tomcat Manager

View project on GitHub

Apache Tomcat Manager

atmanager is shell tool for controlling/operating Apache Tomcat Server.

Developed in bash code: 100%.

atmanager_shell_checker

The README is used to introduce the tool and provide instructions on how to install the tool, any machine dependencies it may have and any other information that should be provided before the tool is installed.

GitHub issues open GitHub contributors

Table of Contents

Installation

Debian Linux OS

Navigate to release page download and extract release archive.

To install atmanager type the following

tar xvzf atmanager-x.y.tar.gz
cd atmanager-x.y
cp -R ~/sh_tool/bin/   /root/scripts/atmanager/ver.x.y/
cp -R ~/sh_tool/conf/  /root/scripts/atmanager/ver.x.y/
cp -R ~/sh_tool/log/   /root/scripts/atmanager/ver.x.y/

Self generated setup script and execution

./atmanager_setup.sh 

[setup] installing App/Tool/Script atmanager
	Sun 21 Nov 2021 12:13:08 PM CET
[setup] clean up App/Tool/Script structure
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done

/root/scripts/atmanager/ver.4.0/
├── bin/
│   ├── atmanager.sh
│   ├── center.sh
│   └── display_logo.sh
├── conf/
│   ├── atmanager.cfg
│   ├── atmanager.logo
│   └── atmanager_util.cfg
└── log/
    └── atmanager.log

3 directories, 7 files
lrwxrwxrwx 1 root root 48 Nov 21 12:13 /root/bin/atmanager -> /root/scripts/atmanager/ver.4.0/bin/atmanager.sh

Or You can use docker to create image/container.

Usage

# Create symlink for shell tool
ln -s /root/scripts/atmanager/ver.x.y/bin/atmanager.sh /root/bin/atmanager

# Setting PATH
export PATH=${PATH}:/root/bin/

# Start Apache Tomcat Server
atmanager start

atmanager ver.4.0
Sun 21 Nov 2021 12:13:08 PM CET

[check_root] Check permission for current session? [ok]
[check_root] Done

                                                                                     
               ██                                                                    
              ░██                                                                    
    ██████   ██████ ██████████   ██████   ███████   ██████    █████   █████  ██████  
   ░░░░░░██ ░░░██░ ░░██░░██░░██ ░░░░░░██ ░░██░░░██ ░░░░░░██  ██░░░██ ██░░░██░░██░░█  
    ███████   ░██   ░██ ░██ ░██  ███████  ░██  ░██  ███████ ░██  ░██░███████ ░██ ░   
   ██░░░░██   ░██   ░██ ░██ ░██ ██░░░░██  ░██  ░██ ██░░░░██ ░░██████░██░░░░  ░██     
  ░░████████  ░░██  ███ ░██ ░██░░████████ ███  ░██░░████████ ░░░░░██░░██████░███     
   ░░░░░░░░    ░░  ░░░  ░░  ░░  ░░░░░░░░ ░░░   ░░  ░░░░░░░░   █████  ░░░░░░ ░░░      
                                                             ░░░░░                   
	                                                       
		Info   github.io/atmanager ver.4.0 
		Issue  github.io/issue
		Author vroncevic.github.io

[atmanager] Loading basic and util configuration!
100% [================================================]

[load_conf] Loading App/Tool/Script configuration!
[check_cfg] Checking configuration file [/root/scripts/atmanager/ver.4.0/conf/atmanager.cfg] [ok]
[check_cfg] Done

[load_conf] Done

[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/atmanager/ver.4.0/conf/atmanager_util.cfg] [ok]
[check_cfg] Done

[load_util_conf] Done

[check_tool] Checking tool [/opt/tomcat/bin/catalina.sh]? [ok]
[check_tool] Done

[check_op] Checking operation [start]? [ok]
[check_op] Done

[atmanager] Operation: start Apache Tomcat Server
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
Tomcat started.
[logging] Checking directory [/root/scripts/atmanager/ver.4.0/log/]? [ok]
[logging] Write info log!
[logging] Done

[atmanager] Done

Dependencies

atmanager requires next modules and libraries

Shell tool structure

atmanager is based on MOP.

Shell tool structure

sh_tool/
├── bin/
│   ├── atmanager.sh
│   ├── center.sh
│   └── display_logo.sh
├── conf/
│   ├── atmanager.cfg
│   ├── atmanager.logo
│   └── atmanager_util.cfg
└── log/
    └── atmanager.log

Docs

Documentation Status

More documentation and info at

License: GPL v3 License

Copyright (C) 2016 - 2024 by vroncevic.github.io/atmanager

atmanager is free software; you can redistribute it and/or modify it under the same terms as Bash itself, either Bash version 4.2.47 or, at your option, any later version of Bash 4 you may have available.

Lets help and support FSF.

Free Software Foundation

Donate