services: add names for systemd helper scripts
The systemd journal now shows a specific script name instead of the generic name "script" before script output.
This commit is contained in:
parent
6982699613
commit
6a32812412
3 changed files with 25 additions and 24 deletions
|
|
@ -52,13 +52,13 @@ let self = {
|
|||
'';
|
||||
};
|
||||
|
||||
script = src: pkgs.writers.writeBash "script" ''
|
||||
script = name: src: pkgs.writers.writeBash name ''
|
||||
set -eo pipefail
|
||||
${src}
|
||||
'';
|
||||
|
||||
# Used for ExecStart*
|
||||
privileged = src: "+${self.script src}";
|
||||
privileged = name: src: "+${self.script name src}";
|
||||
|
||||
cliExec = mkOption {
|
||||
# Used by netns-isolation to execute the cli in the service's private netns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue