#check if rsyslog instance exists and, if so, kill itif[-e"rsyslog.pid"]thenecho rsyslog.pid exists, trying to shut down rsyslogd process `cat rsyslog.pid`.
kill -9`cat rsyslog.pid`sleep1fiif[-e"rsyslog2.pid"]thenecho rsyslog2.pid exists, trying to shut down rsyslogd process `cat rsyslog2.pid`.
kill -9`cat rsyslog2.pid`sleep1fi