lxc-log: also match syslog identifier
This commit is contained in:
parent
fee04b266f
commit
c67d07eaf0
6
lxc-log
6
lxc-log
@ -23,6 +23,6 @@ CONTAINER_PATH="/data/containers/$CONTAINER"
|
||||
[ $EUID -eq 0 ] || die "Needs root permission"
|
||||
[ -d "$CONTAINER_PATH" ] || die "No such container found: $CONTAINER"
|
||||
|
||||
SYSTEMD_CGROUP="/system.slice/system-lxc.slice/lxc@${CONTAINER}.service/system.slice/${SERVICE}.service"
|
||||
|
||||
journalctl _SYSTEMD_CGROUP=${SYSTEMD_CGROUP} "$@"
|
||||
CGROUP="/system.slice/system-lxc.slice/lxc@${CONTAINER}.service/system.slice/${SERVICE}.service"
|
||||
UNIT=lxc@${CONTAINER}.service
|
||||
journalctl _SYSTEMD_CGROUP=${CGROUP} + SYSLOG_IDENTIFIER=${SERVICE} _SYSTEMD_UNIT=${UNIT} "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user