From 36f437b9ca5f0eb0f3fa18ed4fa811a6ae4b4ad7 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 19 Jan 2026 11:33:09 -0800 Subject: [PATCH] Change mtail service to read /dev/stdin instead of "-" The shell alias "-" should work for stdin, but on one of my servers it was not working and stracing the process showed it kept trying to open a file named /-. I do not know how or why this was the case, but altering it to read /dev/stdin instead solved the issue. --- cmdeploy/src/cmdeploy/mtail/mtail.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/mtail/mtail.service.j2 b/cmdeploy/src/cmdeploy/mtail/mtail.service.j2 index 42fcaac3..b2f80d47 100644 --- a/cmdeploy/src/cmdeploy/mtail/mtail.service.j2 +++ b/cmdeploy/src/cmdeploy/mtail/mtail.service.j2 @@ -3,7 +3,7 @@ Description=mtail [Service] Type=simple -ExecStart=/bin/sh -c "journalctl -f -o short-iso -n 0 | /usr/local/bin/mtail --address={{ address }} --port={{ port }} --progs /etc/mtail --logtostderr --logs -" +ExecStart=/bin/sh -c "journalctl -f -o short-iso -n 0 | /usr/local/bin/mtail --address={{ address }} --port={{ port }} --progs /etc/mtail --logtostderr --logs /dev/stdin" Restart=on-failure [Install]