diff options
| author | tv <tv@krebsco.de> | 2026-01-21 04:42:16 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-01-21 04:42:16 +0100 |
| commit | 04a4f4edb1a69a51e6de98a5eadc1f4c6754fe91 (patch) | |
| tree | 1fc4e23f091711a5b4de19307b2d572fc6cdeb3a | |
| parent | 688cda3018b8371438fac7ba445d81ece6f0bcd0 (diff) | |
eximlog: emigrate
| -rw-r--r-- | krebs/5pkgs/simple/eximlog.nix | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/krebs/5pkgs/simple/eximlog.nix b/krebs/5pkgs/simple/eximlog.nix deleted file mode 100644 index 4abbcfc5a..000000000 --- a/krebs/5pkgs/simple/eximlog.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ jq, lib, systemd, writeDashBin }: - -let - stockholm.lib = import ../../../lib/pure.nix { inherit lib; }; - user = "exim"; # TODO make this configurable -in - -# TODO execute eximlog only if journalctl doesn't fail -# bash's set -o pipefail isn't enough - -writeDashBin "eximlog" '' - ${systemd}/bin/journalctl \ - -u ${stockholm.lib.shell.escape user} \ - -o short-unix \ - "$@" \ - | - ${jq}/bin/jq -Rr ' - # Only select lines that start with a timestamp - select(test("^[0-9]")) | - - split(" ") | - (.[0] | tonumber) as $time | - (.[3:] | join(" ")) as $message | - - "\($time | strftime("%Y-%m-%d %H:%M:%S %z")) \($message)" - - ' -'' |
