xcat-core/xCAT/postscripts/killsyslog
2014-06-19 04:26:53 -04:00

11 lines
233 B
Bash
Executable File

#!/bin/bash
#Used only by sysclone
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