anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0255-tmpfiles.d-don-t-clean-SAP-lockfiles-and-logs.patch

923a60
From 8d450bb995ed0b24a716a3e43d1301f18a1be800 Mon Sep 17 00:00:00 2001
923a60
From: Lukas Nykryn <lnykryn@redhat.com>
923a60
Date: Tue, 6 Oct 2015 12:33:15 +0200
923a60
Subject: [PATCH] tmpfiles.d: don't clean SAP lockfiles and logs
923a60
923a60
rhel-only
923a60
923a60
Resolves: #1186044
923a60
---
923a60
 Makefile.am         | 3 ++-
923a60
 tmpfiles.d/sap.conf | 3 +++
923a60
 2 files changed, 5 insertions(+), 1 deletion(-)
923a60
 create mode 100644 tmpfiles.d/sap.conf
923a60
923a60
diff --git a/Makefile.am b/Makefile.am
923a60
index 0fcb737509..887e70a95f 100644
923a60
--- a/Makefile.am
923a60
+++ b/Makefile.am
923a60
@@ -2220,7 +2220,8 @@ dist_tmpfiles_DATA = \
923a60
 	tmpfiles.d/systemd-nologin.conf \
923a60
 	tmpfiles.d/tmp.conf \
923a60
 	tmpfiles.d/x11.conf \
923a60
-	tmpfiles.d/var.conf
923a60
+	tmpfiles.d/var.conf \
923a60
+	tmpfiles.d/sap.conf
923a60
 
923a60
 if HAVE_SYSV_COMPAT
923a60
 dist_tmpfiles_DATA += \
923a60
diff --git a/tmpfiles.d/sap.conf b/tmpfiles.d/sap.conf
923a60
new file mode 100644
923a60
index 0000000000..01ace42c43
923a60
--- /dev/null
923a60
+++ b/tmpfiles.d/sap.conf
923a60
@@ -0,0 +1,3 @@
923a60
+# Let's not touch SAP files
923a60
+x /tmp/.hdb_*_lock
923a60
+x /tmp/.sapstartsrv*.log