Skip to content

Commit

Permalink
Add mtail service file
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 11, 2024
1 parent b959e57 commit 98d0b77
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmdeploy/src/cmdeploy/mtail/mtail.service.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
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 -"
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit 98d0b77

Please sign in to comment.