richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
Blob Blame History Raw
From 8d450bb995ed0b24a716a3e43d1301f18a1be800 Mon Sep 17 00:00:00 2001
From: Lukas Nykryn <lnykryn@redhat.com>
Date: Tue, 6 Oct 2015 12:33:15 +0200
Subject: [PATCH] tmpfiles.d: don't clean SAP lockfiles and logs

rhel-only

Resolves: #1186044
---
 Makefile.am         | 3 ++-
 tmpfiles.d/sap.conf | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 tmpfiles.d/sap.conf

diff --git a/Makefile.am b/Makefile.am
index 0fcb73750..887e70a95 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2220,7 +2220,8 @@ dist_tmpfiles_DATA = \
 	tmpfiles.d/systemd-nologin.conf \
 	tmpfiles.d/tmp.conf \
 	tmpfiles.d/x11.conf \
-	tmpfiles.d/var.conf
+	tmpfiles.d/var.conf \
+	tmpfiles.d/sap.conf
 
 if HAVE_SYSV_COMPAT
 dist_tmpfiles_DATA += \
diff --git a/tmpfiles.d/sap.conf b/tmpfiles.d/sap.conf
new file mode 100644
index 000000000..01ace42c4
--- /dev/null
+++ b/tmpfiles.d/sap.conf
@@ -0,0 +1,3 @@
+# Let's not touch SAP files
+x /tmp/.hdb_*_lock
+x /tmp/.sapstartsrv*.log