X-Git-Url: https://git.distorted.org.uk/~mdw/rcheck/blobdiff_plain/66015b8c4bcf160b0dadd13d417772e336b9f6e8..ff90728f4a3d6dfbc11dca299fbe65a9f28e508b:/check.d/10.daemons diff --git a/check.d/10.daemons b/check.d/10.daemons new file mode 100755 index 0000000..78dc3a3 --- /dev/null +++ b/check.d/10.daemons @@ -0,0 +1,17 @@ +#! /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