ryantimwilson / rpms / systemd

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