2020-04-09 10:38:01 +08:00
2020-04-09 10:38:01 +08:00
2020-04-09 02:34:23 +00:00
2020-04-10 14:12:04 +08:00

A Script For NCBA MSL

What the script can do

It is a boot menu for fast switch application environment and appilcation management

It provided a few of feature for application

  • Application startup/shutdown
  • Log in system feels as simulated application user
  • Show more property of application (running state, version, file size, last updated... )
  • Logging trace
  • Colorful UI displays
  • Switch application fast and friendly

Screenshot

Customized definition

# Default Group on Configuration center  
conf_group="DEFAULT_GROUP"

# Location for configuration file store while auto pull from Configuration center  
conf_directory="/home/ncbamsl/conf/"

# Configuration center's host
conf_center_host="10.0.0.13:9084"

# Communal configuration id 
profile_common="common.properties"

# Application startup script
startup_script="${base_home}/bin/startApp-configclient.sh"

# Inject script (recommend don't change it)
inject_script=${base_home}/.inject.script

# Inject profile (recommend don't change it)
initrc=${base_home}/.injectrc

Dependency

  • expect

    yum install -y expect
    
  • unzip

    yum install -y unzip
    

Feature coming soon

  • Logging trace (Implemented)

    Switch to application's logging directory and tail -f xxx.out automatic

  • Display application's version on menu (Implemented)

    Get version from app.war like as below unzip -p boss.war META-INF/MANIFEST.MF | grep Implementation-Version: | awk -F ':' '{print $2}' 1.0.0-SNAPSHOT

Description
OpsDev
Readme 5.5 MiB
Languages
Shell 100%