diff options
Diffstat (limited to 'ctdb/tests/UNIT/eventscripts/stubs/pidof')
-rwxr-xr-x | ctdb/tests/UNIT/eventscripts/stubs/pidof | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/stubs/pidof b/ctdb/tests/UNIT/eventscripts/stubs/pidof new file mode 100755 index 0000000..6a25395 --- /dev/null +++ b/ctdb/tests/UNIT/eventscripts/stubs/pidof @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +nfsd) + echo "$FAKE_NFSD_THREAD_PIDS" + ;; +rpc.statd | rpc.rquotad | rpc.mountd) + echo "$FAKE_RPC_THREAD_PIDS" + ;; +smbd) + echo "$FAKE_SMBD_THREAD_PIDS" + ;; +*) + echo "pidof: \"$1\" not implemented" + exit 1 + ;; +esac |