From 18f2002cf0a514f5fcbadb77e9318bcca7c49506 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 1 Feb 2021 22:53:20 +0100 Subject: [PATCH] joinmarket-yieldgenerator: improve systemd journal output Journal entries now look like `joinmarket-yieldgenerator[9795]: User data location: /var/lib/joinmarket` instead of `bash[9795]: User data location: /var/lib/joinmarket` --- modules/joinmarket.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/joinmarket.nix b/modules/joinmarket.nix index 1b7ca42..53e1ea8 100644 --- a/modules/joinmarket.nix +++ b/modules/joinmarket.nix @@ -244,6 +244,10 @@ in { RuntimeDirectoryMode = "700"; WorkingDirectory = cfg.dataDir; # The service creates dir 'logs' in the working dir ExecStart = "${pkgs.bash}/bin/bash /run/${RuntimeDirectory}/start"; + # Show "joinmarket-yieldgenerator" instead of "bash" in the journal. + # The parent bash start process has to run alongside the main process + # because it provides the wallet password via stdin to the main process + SyslogIdentifier = "joinmarket-yieldgenerator"; User = cfg.user; ReadWritePaths = cfg.dataDir; } // nbLib.allowTor;