From 7eb9bf8cfc8fe7bfaeb465eb4ff033cad0b93346 Mon Sep 17 00:00:00 2001 From: gngpp Date: Tue, 12 Mar 2024 13:12:16 +0800 Subject: [PATCH] Update daemon.rs --- src/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.rs b/src/daemon.rs index b6d71eb..d4932ce 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -49,7 +49,7 @@ pub fn start() -> Result<()> { let stderr = File::create(DEFAULT_STDERR_PATH)?; stdout.set_permissions(Permissions::from_mode(0o755))?; - let mut daemonize = Daemonize::new() + let daemonize = Daemonize::new() .pid_file(PID_PATH) // Every method except `new` and `start` .chown_pid_file(true) // is optional, see `Daemonize` documentation .working_directory(DEFAULT_WORK_DIR) // for default behaviour.