Bug 89656

Summary: watchdog - external check
Product: systemd Reporter: Klavs Klavsen <kl>
Component: generalAssignee: systemd-bugs
Status: RESOLVED DUPLICATE QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium CC: mh+freedesktop-bugzilla
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Klavs Klavsen 2015-03-18 11:52:12 UTC
I currently have an issue on CentOS 7.. where nslcd simply stops working, and systemctl/systemd restart just hangs.. I have to manually kill it.

until I "hopefully" find a fix.. I'd like to detect this situation and restart the service.

Since systemd has this nice watchdog setup.. I'd like to use it, but appearently it currently requires me to modify nss-pam-ldapd (ie. nslcd's source).. 

I was hoping I could pursuade you to allow for a definition of an external check.. (in my case something like: getent passwd | wc -l - and check count larger than list in local passwd file)

So I don't have to write my own logic in a cronjob to fix it :)
Comment 1 Marc Haber 2015-05-02 15:53:16 UTC
This is a duplicate of #88192, which I cannot mark as duplicate as this one would then automatically be "resolved", which it isnt.
Comment 2 Lennart Poettering 2015-05-03 14:30:48 UTC
Well, but that's how bugzilla handles duplicates... 

I think "resolved" really shouldn't be considered "fixed", but simply as "this separate bug report is not needed anymore".

Hence closing as duplicate.

*** This bug has been marked as a duplicate of bug 88192 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.