############################
### banapp5
############################


### 
systemctl --no-pager | grep running > /var/tmp/before-reboot

## AUTOFS
 ls -l /apps/bmui_staging
 ls -ld /banner/dist/*

systemctl stop cbagentd.service
systemctl stop httpd.service
systemctl stop jenkins-agent.service
systemctl stop mysqld.service

ps -ef | egrep -v 'root|gdm|rabbit|tomcat'
ps -ef | egrep -v 'root|gdm'

IF NEEDED 
# /etc/init.d/gcstartup stop


systemctl stop rabbitmq-server.service
systemctl stop tomcat-1.service
systemctl stop tomcat-2.service
systemctl stop tomcat-3.service
systemctl stop tomcat-6.service
systemctl stop tomcat-7.service

LOOK AT onprem-sys


ps -ef | egrep -v 'root|gdm'


=======================
sync
sync
sync
reboot
========================

## AUTOFS
 ls -l /apps/bmui_staging
 ls -ld /banner/dist/*

systemctl status cbagentd.service
systemctl status httpd.service
systemctl status mysqld.service

systemctl status  jenkins-agent.service

systemctl status  rabbitmq-server.service
systemctl status  tomcat-1.service
systemctl status  tomcat-2.service
systemctl status  tomcat-3.service

systemctl status  tomcat-6.service
systemctl status  tomcat-7.service


systemctl --no-pager | grep running > /var/tmp/after-reboot
diff  /var/tmp/before-reboot /var/tmp/after-reboot

