--- /dev/null
+#! /bin/sh
+
+rc=0
+
+check () {
+ path=$1
+ if [ -x $path ] && ! pgrep -x ${path##*/} >/dev/null; then
+ echo >&2 $path not running
+ rc=1
+ fi
+}
+
+check /usr/sbin/ekeyd
+check /usr/sbin/ekeyd-egd-linux
+check /usr/sbin/yaid
+
+exit $rc