deployment.sh: make sure we don't leave any running processes

This actually isn't necessary but it's nice to be able
to re-execute /tmp/netscript.grml without having to reboot.
So let's make sure rereading the partition table (and therefore
no processes running on /mnt/* are left behind) works.

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 369a28d911
commit 92fce76e66

@ -882,6 +882,13 @@ if "$PRO_EDITION" ; then
EOF
fi
# make sure we don't leave any running processes
for i in asterisk collectd collectdmon exim4 \
glusterfs glusterfsd haveged redis-server \
snmpd ; do
killall -9 $i >/dev/null 2>&1 || true
done
# don't leave any mountpoints
sync
umount ${TARGET}/proc 2>/dev/null || true

Loading…
Cancel
Save