lxc-log: also match syslog identifier

This commit is contained in:
root 2015-01-10 08:40:55 +01:00
parent fee04b266f
commit c67d07eaf0

View File

@ -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} "$@"