ff90728f MW |
1 | #! /bin/sh |
2 | |
3 | rc=0 |
4 | |
5 | check () { |
6 | path=$1 |
7 | if [ -x $path ] && ! pgrep -x ${path##*/} >/dev/null; then |
8 | echo >&2 $path not running |
9 | rc=1 |
10 | fi |
11 | } |
12 | |
13 | check /usr/sbin/ekeyd |
14 | check /usr/sbin/ekeyd-egd-linux |
15 | check /usr/sbin/yaid |
16 | |
17 | exit $rc |