rpc_lib.sh 316 B

123456789101112131415
  1. #!/bin/sh
  2. # Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
  3. . tst_net.sh
  4. check_portmap_rpcbind()
  5. {
  6. if pgrep portmap > /dev/null; then
  7. PORTMAPPER="portmap"
  8. else
  9. pgrep rpcbind > /dev/null && PORTMAPPER="rpcbind" || \
  10. tst_brk TCONF "portmap or rpcbind is not running"
  11. fi
  12. tst_res TINFO "using $PORTMAPPER"
  13. }