#!/bin/bash
#
# ::copy::
# ::maintainer::
#
CMD=`basename $0`
tag="$CMD-$$"

cmd=$1; shift

logger -t "$tag" "$cmd $@"
/usr/sbin/$cmd "$@" || {
	stat=$?
	logger -t "$tag" "ERROR $cmd: exited with status $stat"
}
exit 0
