Blame SOURCES/cobbler-updating-logrotate-config.patch

1070a0
From 33b5fbd7ac2071aa5108c31b468504d8c9916ef8 Mon Sep 17 00:00:00 2001
1070a0
From: Tomas Kasparek <tkasparek@redhat.com>
1070a0
Date: Tue, 31 Oct 2017 11:07:14 +0100
1070a0
Subject: [PATCH] 1314379 - updating logrotate config to cobbler 2.8 state
1070a0
1070a0
---
1070a0
 config/cobblerd_rotate | 4 +---
1070a0
 1 file changed, 1 insertion(+), 3 deletions(-)
1070a0
1070a0
diff --git a/config/cobblerd_rotate b/config/cobblerd_rotate
1070a0
index 1a1fb2f..b529355 100644
1070a0
--- a/config/cobblerd_rotate
1070a0
+++ b/config/cobblerd_rotate
1070a0
@@ -4,9 +4,7 @@
1070a0
    rotate 4
1070a0
    weekly
1070a0
    postrotate
1070a0
-      if [ -f /var/lock/subsys/cobblerd ]; then
1070a0
-         /etc/init.d/cobblerd condrestart > /dev/null
1070a0
-      fi
1070a0
+      /sbin/service cobblerd condrestart > /dev/null 2>&1
1070a0
    endscript
1070a0
 }
1070a0
 
1070a0
-- 
1070a0
2.5.5
1070a0