|
|
9f2ebf |
From 7f4a89ff4e7dc7c3ffac24ac87187dca1e9e7d1e Mon Sep 17 00:00:00 2001
|
|
|
9f2ebf |
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
9f2ebf |
Date: Wed, 8 Nov 2017 14:09:36 +0100
|
|
|
9f2ebf |
Subject: [PATCH 33/35] SYSTEMD: Clean pid file in corner cases
|
|
|
9f2ebf |
MIME-Version: 1.0
|
|
|
9f2ebf |
Content-Type: text/plain; charset=UTF-8
|
|
|
9f2ebf |
Content-Transfer-Encoding: 8bit
|
|
|
9f2ebf |
|
|
|
9f2ebf |
SSSD can cleanup pid file in case of standard stopping of daemon.
|
|
|
9f2ebf |
It's done in function monitor_cleanup. However monitor does not have a
|
|
|
9f2ebf |
change to cleanup file in case of OOM or sending SIGKILL to monitor.
|
|
|
9f2ebf |
|
|
|
9f2ebf |
Even though PIDFile is not necessary for services with Type notify
|
|
|
9f2ebf |
we should let systemd to clean this file in unexpected situations.
|
|
|
9f2ebf |
|
|
|
9f2ebf |
Resolves:
|
|
|
9f2ebf |
https://pagure.io/SSSD/sssd/issue/3528
|
|
|
9f2ebf |
|
|
|
9f2ebf |
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
|
|
|
9f2ebf |
(cherry picked from commit f4b808c83ecbaf36c7069440535d62990e32d55d)
|
|
|
9f2ebf |
---
|
|
|
9f2ebf |
src/sysv/systemd/sssd.service.in | 1 +
|
|
|
9f2ebf |
1 file changed, 1 insertion(+)
|
|
|
9f2ebf |
|
|
|
9f2ebf |
diff --git a/src/sysv/systemd/sssd.service.in b/src/sysv/systemd/sssd.service.in
|
|
|
9f2ebf |
index cea848fac80303d6fae12dd84316a91dbc60072d..0c515d34caaa3ea397c4c7e95eef0188df170840 100644
|
|
|
9f2ebf |
--- a/src/sysv/systemd/sssd.service.in
|
|
|
9f2ebf |
+++ b/src/sysv/systemd/sssd.service.in
|
|
|
9f2ebf |
@@ -10,6 +10,7 @@ EnvironmentFile=-@environment_file@
|
|
|
9f2ebf |
ExecStart=@sbindir@/sssd -i ${DEBUG_LOGGER}
|
|
|
9f2ebf |
Type=notify
|
|
|
9f2ebf |
NotifyAccess=main
|
|
|
9f2ebf |
+PIDFile=@localstatedir@/run/sssd.pid
|
|
|
9f2ebf |
|
|
|
9f2ebf |
[Install]
|
|
|
9f2ebf |
WantedBy=multi-user.target
|
|
|
9f2ebf |
--
|
|
|
9f2ebf |
2.13.6
|
|
|
9f2ebf |
|