summaryrefslogtreecommitdiffstats
path: root/tests/killrsyslog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/killrsyslog.sh')
-rwxr-xr-xtests/killrsyslog.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/killrsyslog.sh b/tests/killrsyslog.sh
new file mode 100755
index 00000000..b1be757b
--- /dev/null
+++ b/tests/killrsyslog.sh
@@ -0,0 +1,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