daandemeyer / rpms / systemd

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