summaryrefslogtreecommitdiffstats
path: root/tests/killrsyslog.sh
blob: b1be757b4bba56d6b75b6ac21f459b12f82cf770 (plain)
1
2
3
4
5
6
7
#check if rsyslog instance exists and, if so, kill it
if [ -e "rsyslog.pid" ]
then
  echo rsyslog.pid exists, trying to shut down rsyslogd process `cat rsyslog.pid`.
  kill `cat rsyslog.pid`
  sleep 1
fi