Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Steffens <joerg.steffens@bareos.com>2022-09-29 17:23:56 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2022-10-21 11:57:21 +0300
commitc8f35aae660906269401ec15ed1d66fe8a0c351c (patch)
tree3d7c1baab6b837b9cec6802eb7903ba26a87abb9 /systemtests
parentb0bb6d2ec8f832e984416a0003962c5bf2c270cc (diff)
systemtests reload: cleanup
Diffstat (limited to 'systemtests')
-rw-r--r--systemtests/tests/reload/reload_test_functions11
1 files changed, 1 insertions, 10 deletions
diff --git a/systemtests/tests/reload/reload_test_functions b/systemtests/tests/reload/reload_test_functions
index 85d88a605..dcaedbc05 100644
--- a/systemtests/tests/reload/reload_test_functions
+++ b/systemtests/tests/reload/reload_test_functions
@@ -18,16 +18,7 @@ stop_director() {
start_director() {
"${rscripts}/bareos-ctl-dir" start "$director_debug_level"
- case $(uname -s) in
- SunOS)
- director_pid=$(pgrep -f ${BAREOS_DIRECTOR_BINARY}) ;;
- FreeBSD)
- director_pid=$(pidof ${BAREOS_DIRECTOR_BINARY});;
- *)
- director_pid=$(pidof $(basename ${BAREOS_DIRECTOR_BINARY}));;
- esac
-
- if [ -z "$director_pid" ]; then
+ if ! "${rscripts}/bareos-ctl-dir" status; then
exit_with_error "Bareos director could not be started"
fi
}