mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
3d408ca1e1
It looks like this restart was accidentally reintroduced in commit fc0678d351187cfa4c71123f97c0f493aacd5d16 when $service_reconfigure became unset so the default action of restarting the service would occur. From there cleanups have explicitly reintroduced it and carried it through the code. Also update the unit tests affected by this change. The restart was originally removed in commit bc481c3f1a44c50648488c4f8a7f15ec395d446f. The default reconfigure action of restarting a service is clearly suboptimal and will be addressed in a separate patch. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2629de72e1f37b5e46772c2ef8d8d0012fc4ed37)
20 lines
306 B
Bash
Executable File
20 lines
306 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_SCRIPTS_DIR}/unit.sh"
|
|
|
|
define_test "reconfigure (synthetic), twice"
|
|
# This checks that the lock is released...
|
|
|
|
setup_nfs
|
|
|
|
public_address=$(ctdb_get_1_public_address)
|
|
|
|
err=""
|
|
|
|
ok <<EOF
|
|
Reconfiguring service "nfs"...
|
|
EOF
|
|
|
|
simple_test_event "reconfigure"
|
|
simple_test_event "reconfigure"
|