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:
parent
9d0b8c8f6f
commit
18f2002cf0
@ -244,6 +244,10 @@ in {
|
|||||||
RuntimeDirectoryMode = "700";
|
RuntimeDirectoryMode = "700";
|
||||||
WorkingDirectory = cfg.dataDir; # The service creates dir 'logs' in the working dir
|
WorkingDirectory = cfg.dataDir; # The service creates dir 'logs' in the working dir
|
||||||
ExecStart = "${pkgs.bash}/bin/bash /run/${RuntimeDirectory}/start";
|
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;
|
User = cfg.user;
|
||||||
ReadWritePaths = cfg.dataDir;
|
ReadWritePaths = cfg.dataDir;
|
||||||
} // nbLib.allowTor;
|
} // nbLib.allowTor;
|
||||||
|
Loading…
Reference in New Issue
Block a user