mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 09:40:42 +01:00
16 lines
399 B
Bash
Executable File
16 lines
399 B
Bash
Executable File
#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 -9 `cat rsyslog.pid`
|
|
sleep 1
|
|
rm rsyslog.pid
|
|
fi
|
|
if [ -e "rsyslog2.pid" ]
|
|
then
|
|
echo rsyslog2.pid exists, trying to shut down rsyslogd process `cat rsyslog2.pid`.
|
|
kill -9 `cat rsyslog2.pid`
|
|
sleep 1
|
|
rm rsyslog2.pid
|
|
fi
|