2014-06-19 08:26:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#Used only by sysclone
|
|
|
|
|
2014-06-23 09:05:30 +00:00
|
|
|
# SI post-install script, run after SI has installed the OS, to kill processes SI does not kill
|
|
|
|
# (so /a can be umounted cleanly)
|
|
|
|
# SI post-install scripts run in a chroot environment of the final OS image
|
|
|
|
|
2013-08-20 09:09:46 +00:00
|
|
|
if [ -f "/etc/SuSE-release" ];then
|
|
|
|
str_out=`ps -ef | grep -v grep | grep syslog-ng`
|
|
|
|
if [ $? -eq 0 ];then
|
|
|
|
str_id=`echo $str_out | awk '{print $2}'`
|
|
|
|
kill -9 $str_id
|
|
|
|
fi
|
|
|
|
fi
|
2014-06-23 09:05:30 +00:00
|
|
|
|
|
|
|
# SI starts klogd in the chroot, but does not kill it. Remove this line when SI fixes their bug.
|
|
|
|
killall klogd
|
|
|
|
|
|
|
|
# flush all write buffers, just in case SI can not umount /a
|
|
|
|
echo "Syncing file systems"
|
|
|
|
sync
|
|
|
|
|
|
|
|
#todo: remove
|
|
|
|
#echo "Processes still using /:"
|
|
|
|
#fuser -v /
|
|
|
|
#sleep 30
|