eventscripts: Separate out RPC service restart code
authorMartin Schwenke <martin@meltin.net>
Fri, 2 Aug 2013 06:05:46 +0000 (16:05 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 14 Aug 2013 05:57:03 +0000 (15:57 +1000)
commitbdbe37b24fef22c795531e1aba81e5baee6e5916
tree68af683101f05e4fa163f4e28ebc088460e14884
parent2afb5632c719bc8bd8569b6af309227401f4d9b4
eventscripts: Separate out RPC service restart code

While doing this:

* Explicitly assign RPC program and version information in
  _nfs_check_rpc_common().  This is more lines of code but is easier
  to read.

* Don't print the options when starting a service.  Trying to print it
  makes the code messy for little benefit.

  Update the eventscript unit testing code and a Ganesha test to
  reflect this.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit e8b531405665885196c95fe1608db33a255bf761)
ctdb/config/functions
ctdb/tests/eventscripts/60.ganesha.monitor.141.sh
ctdb/tests/eventscripts/scripts/local.sh