]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- #4108: systemd reload hang fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 21 Jun 2018 07:11:12 +0000 (07:11 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 21 Jun 2018 07:11:12 +0000 (07:11 +0000)
git-svn-id: file:///svn/unbound/trunk@4747 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c
doc/Changelog

index 6820e1181451e72422bc2186d1c01c942dec3cee..994489e2102277146ca9c64a220560bd6ef353a5 100644 (file)
@@ -662,7 +662,10 @@ daemon_fork(struct daemon* daemon)
        log_info("start of service (%s).", PACKAGE_STRING);
        worker_work(daemon->workers[0]);
 #ifdef HAVE_SYSTEMD
-       sd_notify(0, "STOPPING=1");
+       if (daemon->workers[0]->need_to_exit)
+               sd_notify(0, "STOPPING=1");
+       else
+               sd_notify(0, "RELOADING=1");
 #endif
        log_info("service stopped (%s).", PACKAGE_STRING);
 
index a5d4034fd497b93649a98cc8b2dde6b9be279d03..88ea6a94917f13623035e6229479889171c23386 100644 (file)
@@ -1,3 +1,6 @@
+21 June 2018: Wouter
+       - #4108: systemd reload hang fix.
+
 19 June 2018: Wouter
        - Fix for unbound-control on Windows and set TCP socket parameters
          more closely.