소스 검색

Add SyslogIdenfier to healthcheck systemd unit

Adding this new field will allow to filter all healthcheck logs using
the Idenfier value.

For instance, using journalctl, you would be able to run this:
`journalctl -t healthcheck_collectd'

It will also allow to get a dedicated file out of (r)syslog if needed.

This is the reflection of Icdc5caf4cedc46291a807c39c0a31c74955a4a74

Change-Id: I6861baa287f2a8288b87be26aacecbcc061cd96f
Closes-Bug: #1856573
(cherry picked from commit 505dc92a63)
(cherry picked from commit e0566017a5)
changes/23/701523/1
Cédric Jeanneret Cédric Jeanneret (Tengu) 3 달 전
부모
커밋
3c38fe6001
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      paunch/utils/systemd.py

+ 1
- 0
paunch/utils/systemd.py 파일 보기

@@ -194,6 +194,7 @@ Requisite=%(service)s.service
[Service]
Type=oneshot
ExecStart=/usr/bin/podman exec %(name)s %(test)s
SyslogIdentifier=healthcheck_%(name)s
[Install]
WantedBy=multi-user.target
""" % s_config)


불러오는 중...
취소
저장