Skip to content

Commit 218b649

Browse files
committed
- Fix systemd signalling so that it does not reload for too long.
The reload is not signalled to systemd, so that long operations can complete, without systemd acting on a timer to stop them.
1 parent ac360b9 commit 218b649

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

doc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
23 February 2026: Wouter
2+
- Fix systemd signalling so that it does not reload for too long.
3+
The reload is not signalled to systemd, so that long operations
4+
can complete, without systemd acting on a timer to stop them.
5+
16
20 February 2026: Wouter
27
- Fix man page for ip-address, add text about process numbers,
38
bindtodevice and setfib.

xfrd.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,9 +3016,14 @@ void xfrd_process_task_result(xfrd_state_type* xfrd, struct udb_base* taskudb)
30163016

30173017
void xfrd_set_reload_now(xfrd_state_type* xfrd)
30183018
{
3019-
#ifdef HAVE_SYSTEMD
3020-
sd_notify(0, "RELOADING=1");
3021-
#endif
3019+
/* systemd kills after a timer, but a large zone can take time.
3020+
* so there is no,
3021+
* #ifdef HAVE_SYSTEMD
3022+
* sd_notify(0, "RELOADING=1");
3023+
* #endif
3024+
* message.
3025+
* Also, NSD stays responsive during that time, due to the forked
3026+
* operation. */
30223027
xfrd->need_to_send_reload = 1;
30233028
if(!(xfrd->ipc_handler_flags&EV_WRITE)) {
30243029
ipc_xfrd_set_listening(xfrd, EV_PERSIST|EV_READ|EV_WRITE);

0 commit comments

Comments
 (0)