From: Jean Guyader Date: Sun, 30 Aug 2009 14:03:10 +0000 (+0100) Subject: qemu-dm-wrapper: Log under syslog X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7889d40c685879446dcaa33f142f41086434bddf;p=xenclient%2Ftoolstack.git qemu-dm-wrapper: Log under syslog --- diff --git a/scripts/qemu-dm-wrapper b/scripts/qemu-dm-wrapper old mode 100644 new mode 100755 index a71313d..f80a32a --- a/scripts/qemu-dm-wrapper +++ b/scripts/qemu-dm-wrapper @@ -21,7 +21,9 @@ export ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf:/tmp/alsa-vm-${ALSA_VMID}.conf export QEMU_ALSA_DAC_DEV=plug:vm-${ALSA_VMID} export QEMU_ALSA_VOL_CTRL=vm-${ALSA_VMID} -echo Using domid: $DOMID >> /tmp/qemu.$DOMID -echo Arguments: $* >> /tmp/qemu.$DOMID +name="qemu-$DOMID" + +logger -t $name "Using domid: $DOMID" +logger -t $name "Arguments: $*" xenstore-write /local/domain/$DOMID/qemu-pid $$ -exec /usr/lib/xen/bin/qemu-dm $* >> /tmp/qemu.$DOMID 2>&1 +exec /usr/lib/xen/bin/qemu-dm -name qemu-$DOMID $*