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


#######################################
### banapp4
#######################################

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 mysqld.service
systemctl stop jenkins-agent.service

/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-4.service
systemctl stop tomcat-6.service
systemctl stop tomcat-7.service
/etc/init.d//jenkins-agent stop

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 jenkins-agent.service
systemctl status mysqld.service
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 &gt; /var/tmp/after-reboot
diff  /var/tmp/before-reboot /var/tmp/after-reboot

