Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1--- a/src/argononed.c
2+++ b/src/argononed.c
3@@ -783,13 +783,13 @@
4 {
5 log_message(LOG_DEBUG, "EXEC REBOOT");
6 sync();
7- system("/sbin/reboot");
8+ system("/run/current-system/sw/bin/reboot");
9 }
10 if (count >= 39 && count <= 41)
11 {
12 log_message(LOG_DEBUG, "EXEC SHUTDOWN");
13 sync();
14- system("/sbin/poweroff");
15+ system("/run/current-system/sw/bin/poweroff");
16 }
17 #else
18 log_message(LOG_INFO,"Daemon Ready");