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}'

############################
### 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
# systemctl stop oracle_init.service 

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

