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`
This commit is contained in:
Erik Arvstedt 2021-02-01 22:53:20 +01:00
parent 9d0b8c8f6f
commit 18f2002cf0
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 4 additions and 0 deletions

View File

@ -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;