From b7f6ccf8a7cf002940ca100747185ee2cdd3603a Mon Sep 17 00:00:00 2001 From: Alois Date: Sun, 17 May 2026 20:06:08 +0200 Subject: [PATCH] [Add] debugging to systemd nix service --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 32e59e0..7b5e19f 100644 --- a/flake.nix +++ b/flake.nix @@ -179,11 +179,9 @@ ExecStart = if cfg.useTmux then pkgs.writeShellScript "iota-start" '' ${pkgs.tmux}/bin/tmux -S ${cfg.dataDir}/tmux.sock new-session -d -s iota ' + echo "debug: starting iota..." ${cfg.package}/bin/iota 2>&1 | ${pkgs.coreutils}/bin/tee ${cfg.dataDir}/iota-output.log EXIT_CODE=$? - echo "" - echo "============================================" - echo "Iota exited with code: $EXIT_CODE" echo "Output saved to: ${cfg.dataDir}/iota-output.log" echo "Press ENTER to close this session..." read -r