TT#37257 Collect the list of running processes

Collect the list of running process before and after kills in the end
of deployment to catch if we do not stop them properly.

Change-Id: Ie01853723d053a1ef198e47b89566bd4b9a93bbc
changes/14/21814/2
Mykola Malkov 7 years ago
parent f2d911d65d
commit 7a1ca217b4

@ -2421,12 +2421,18 @@ EOF
fi # if [ -n "$PUPPET" ] ; then fi # if [ -n "$PUPPET" ] ; then
# check the processes which are not stopped in installer and running
logit "Before stopping all the services"
ps auxwww || true
# make sure we don't leave any running processes # make sure we don't leave any running processes
for i in asterisk atd collectd collectdmon dbus-daemon exim4 \ for i in asterisk atd collectd collectdmon dbus-daemon exim4 \
glusterd glusterfs glusterfsd glusterfs-server haveged monit nscd \ glusterd glusterfs glusterfsd glusterfs-server haveged monit nscd \
redis-server snmpd voisniff-ng ; do redis-server snmpd voisniff-ng ; do
killall -9 $i >/dev/null 2>&1 || true killall -9 $i >/dev/null 2>&1 || true
done done
# check the processes which are not stopped in installer and running
logit "After stopping all the services"
ps auxwww || true
# remove retrieved and generated files # remove retrieved and generated files
rm -f ${TARGET}/config_*yml rm -f ${TARGET}/config_*yml
@ -2439,10 +2445,10 @@ fi
# don't leave any mountpoints # don't leave any mountpoints
sync sync
umount ${TARGET}/proc 2>/dev/null || true umount ${TARGET}/proc || true
umount ${TARGET}/sys 2>/dev/null || true umount ${TARGET}/sys || true
umount ${TARGET}/dev/pts 2>/dev/null || true umount ${TARGET}/dev/pts || true
umount ${TARGET}/dev 2>/dev/null || true umount ${TARGET}/dev || true
sync sync
# unmount chroot - what else? # unmount chroot - what else?

Loading…
Cancel
Save