+unscd (0.53-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Add systemd notification support for startup error reporting.
+
+ -- Ferenc Wágner <wferi@debian.org> Thu, 31 May 2018 12:03:28 +0200
+
unscd (0.53-1) unstable; urgency=medium
* New upstream revision
Section: admin
Priority: optional
Standards-Version: 4.1.4
-Build-Depends: debhelper (>= 10), groff-base, help2man
+Build-Depends: debhelper (>= 10), groff-base, help2man,
+ libsystemd-dev
Maintainer: Don Armstrong <don@debian.org>
Vcs-Browser: https://git.donarmstrong.com/unscd.git
Vcs-Git: https://git.donarmstrong.com/unscd.git
--- /dev/null
+From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
+Date: Thu, 31 May 2018 11:56:10 +0200
+Subject: Notify systemd about successful startup
+
+---
+ nscd.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/nscd.c b/nscd.c
+index 828eb17..4cbd7b1 100644
+--- a/nscd.c
++++ b/nscd.c
+@@ -99,6 +99,8 @@ vda.linux@googlemail.com
+ /* For inet_ntoa (for debug build only) */
+ #include <arpa/inet.h>
+
++#include <systemd/sd-daemon.h>
++
+ /*
+ * 0.21 add SEGV reporting to worker
+ * 0.22 don't do freeaddrinfo() in GETAI worker, it's crashy
+@@ -2661,6 +2663,8 @@ int main(int argc, char **argv)
+ config.nttl[n] *= 1000;
+ }
+
++ sd_notify (0, "READY=1");
++
+ main_loop();
+
+ return 0;
change_invalidate_request_info_output
support_large_numbers_in_config
no_debug_on_invalidate
+notify_systemd_about_successful_startup
dh_auto_clean
override_dh_auto_build:
- gcc $(CFLAGS) $(LDFLAGS) -o nscd nscd.c
+ gcc $(CFLAGS) $(LDFLAGS) -o nscd nscd.c -lsystemd
help2man --name 'nscd which does not hang' \
--include debian/help2man \
--no-info \
[Service]
User=root
ExecStart=/usr/sbin/nscd -d
+Type=notify
Restart=always
[Install]