~mdw
/
rcheck
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
78dc3a38cb129f7e9f2db437d61b0fafc2364aa0
[rcheck]
/
check.d
/
10.daemons
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