mirror of
https://github.com/Platonic-Systems/process-compose-flake.git
synced 2024-09-11 14:07:00 +03:00
test: systemd: report if pc exits abrutly
This commit is contained in:
parent
c6b1ea6426
commit
2bb8536757
@ -79,10 +79,16 @@ in
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
WorkingDirectory = "/tmp";
|
||||
ExecStart = ''
|
||||
${lib.getExe config.outputs.package} -t=false
|
||||
'';
|
||||
User = "tester";
|
||||
ExecStart = lib.getExe (pkgs.writeShellApplication {
|
||||
name = "process-compose-${name}";
|
||||
text = ''
|
||||
set -x
|
||||
${lib.getExe config.outputs.package} -t=false
|
||||
echo "unexpected: process-compose exited successfully (all processes are completed?)"
|
||||
exit 2
|
||||
'';
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user