systemctl | egrep 'appworx|badm|banjob|cbagent|commvault|httpd|jenkins|mysql|mariadb|nginx|oni|oracle|oussm|postgres|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}'


#########################################
### banapp3 #############################
#########################################

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

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


systemctl stop cbagentd.service
systemctl stop httpd.service
systemctl stop mysql.service

/etc/init.d/gcstartup stop

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

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

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

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

systemctl status httpd.service
systemctl status jenkins-agent.service
## systemctl status oracle_init.service

/etc/init.d/gcstartup start


systemctl status rabbitmq-server.service
systemctl status tomcat-1.service
systemctl status tomcat-2.service
systemctl status tomcat-3.service
systemctl status tomcat-4.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 

