Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1From 6f52bee7f71e253b0504164fc268750116945108 Mon Sep 17 00:00:00 2001 2From: griffi-gh <prasol258@gmail.com> 3Date: Mon, 4 Nov 2024 00:43:49 +0100 4Subject: [PATCH] fix daemon autostart 5 6--- 7 src/daemon_utils.rs | 6 +++++- 8 1 file changed, 5 insertions(+), 1 deletion(-) 9 10diff --git a/src/daemon_utils.rs b/src/daemon_utils.rs 11index cd8f49b..f56e100 100644 12--- a/src/daemon_utils.rs 13+++ b/src/daemon_utils.rs 14@@ -13,7 +13,11 @@ use nix::{ 15 pub fn start() -> bool { 16 let curr_exe = env::current_exe().expect("Couldn't get current executable!"); 17 let mut cmd = Command::new("nohup"); 18- let cmd = cmd.arg(curr_exe).arg("-d").arg("--no-fork").arg("-q"); 19+ let cmd = cmd 20+ .arg(curr_exe) 21+ .arg("--daemon").arg("true") 22+ .arg("--no-fork").arg("true") 23+ .arg("--quiet").arg("true"); 24 cmd.stdout(Stdio::null()); 25 cmd.stderr(Stdio::null()); 26 let status = cmd.spawn();