summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/on-failure.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-04-18 15:10:43 +0200
committerlassulus <lass@aidsballs.de>2016-04-18 15:10:43 +0200
commitc7a6e74b3d151ec480bf5dfbb6e6acb612a88043 (patch)
treef5284434d3c70ea2651deea6df9d7b11200cb783 /krebs/3modules/on-failure.nix
parent3e59f5fb4c9d110d5f91d60c875ca49a414c2a6f (diff)
parent066381dff01f51dd24a829d6cf9de9f6465534f3 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/on-failure.nix')
-rw-r--r--krebs/3modules/on-failure.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/krebs/3modules/on-failure.nix b/krebs/3modules/on-failure.nix
index 13d561b8d..a471a4bc2 100644
--- a/krebs/3modules/on-failure.nix
+++ b/krebs/3modules/on-failure.nix
@@ -84,6 +84,14 @@
${pkgs.systemd}/bin/journalctl \
--lines=${toString plan.journalctl.lines} \
--output=${plan.journalctl.output} \
+ --since="$(
+ ${pkgs.coreutils}/bin/date +'%F %T UTC' -ud "$(
+ ${pkgs.systemd}/bin/systemctl show \
+ -p ExecMainStartTimestamp \
+ ${shell.escape plan.name} \
+ | ${pkgs.coreutils}/bin/cut -d= -f2-
+ )"
+ )" \
--unit=${shell.escape plan.name}.service
} | ${shell.escape cfg.sendmail} -t
'';