systemctl | egrep 'appworx|badm|banjob|cbagent|commvault|httpd|jenkins|mysql|mariadb|nginx|oni|oracle|oussm|postgres|rhnsd|rabbit|snapd|tomcat|avahi|graylog' | cut -c1-90 | egrep -v 'apparmor|target|seeded|socket|mount|session|smart|stat|user|lvm'  | sort -u | awk '{print "systemctl status "$1}'

########################################
### BANAPP8  ###########################
########################################

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


systemctl stop tomcat-1.service
systemctl stop tomcat-2.service
systemctl stop httpd.service
systemctl stop rhnsd.service   


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

systemctl stop onprem-sis-bridge-bannerxe.service

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

----------
sync
sync
sync
reboot
----------

ls -l /u01/app/banner_xe/bmui_staging
ls -l /banner/dist

systemctl status onprem-sis-bridge-bannerxe.service

systemctl status httpd.service
systemctl status tomcat-1.service
systemctl status tomcat-2.service
systemctl status rhnsd.service   


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

diff /var/tmp/before-reboot /var/tmp/after-reboot

