From 26ca3beb2fcbe7765fc6e2570dbbe376f62fae77 Mon Sep 17 00:00:00 2001 From: Duckonaut Date: Mon, 9 Nov 2026 17:18:10 +0100 Subject: feature: add PID file --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 96d08c3..181ee5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -269,6 +269,13 @@ async fn serve(dev_mode: bool, address: &str, public_dir: Option) -> Re println!("🌴 App name: {}", name.bright_yellow()); } + if let Ok(xdg_run_dir) = std::env::var("XDG_RUNTIME_DIR") { + let pid_path: PathBuf = PathBuf::from(xdg_run_dir); + let pid_path = pid_path.join("reluax.pid"); + + println!("🪪 PID File: {}", pid_path.display()); + } + println!("🛫 Starting server on address {}...", address); server::Server::serve(lua, address, public_dir).await } -- cgit v1.3.1