Skip to content

Commit

Permalink
systemtests: removed all killalls
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 15, 2020
1 parent d420756 commit e544c58
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 39 deletions.
Expand Up @@ -19,9 +19,6 @@ exit_with_error() {

stop_bareos_daemons() {
stop_bareos
if [ -n "$(pidof bareos-sd)" ]; then killall -SIGKILL bareos-sd >/dev/null 2>&1; fi
if [ -n "$(pidof bareos-fd)" ]; then killall -SIGKILL bareos-fd >/dev/null 2>&1; fi
if [ -n "$(pidof bareos-dir)" ]; then killall -SIGKILL bareos-dir >/dev/null 2>&1; fi
}

# Directory to backup.
Expand Down
Expand Up @@ -29,12 +29,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down
Expand Up @@ -28,12 +28,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down
Expand Up @@ -28,12 +28,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down
Expand Up @@ -28,12 +28,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down
Expand Up @@ -28,12 +28,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down
6 changes: 0 additions & 6 deletions systemtests/tests/reload-works-on-unchanged-config/testrunner
Expand Up @@ -27,12 +27,6 @@ exit_with_error() {

stop_director() {
"${scripts}/bareos-ctl-dir" stop
if [ -n "$(pidof bareos-dir)" ]; then
killall -SIGKILL "$(pidof bareos-dir)"
fi
if [ -n "$(pidof bareos-dir)" ]; then
exit_with_error "Bareos director could not be stopped"
fi
}

start_director() {
Expand Down

0 comments on commit e544c58

Please sign in to comment.