|
|
973febb |
From 96c657ea8ddc84203f624872c18765ccd1467743 Mon Sep 17 00:00:00 2001
|
|
|
973febb |
From: Dalibor Pospisil <dapospis@redhat.com>
|
|
|
973febb |
Date: Mon, 3 Jun 2019 16:42:28 +0200
|
|
|
973febb |
Subject: [PATCH 8/8] generate correct path to the services state store
|
|
|
973febb |
|
|
|
973febb |
---
|
|
|
973febb |
src/infrastructure.sh | 5 +++--
|
|
|
973febb |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
973febb |
|
|
|
973febb |
diff --git a/src/infrastructure.sh b/src/infrastructure.sh
|
|
|
973febb |
index 1c97205..1294b7c 100644
|
|
|
973febb |
--- a/src/infrastructure.sh
|
|
|
973febb |
+++ b/src/infrastructure.sh
|
|
|
973febb |
@@ -984,8 +984,6 @@ __INTERNAL_SYSTEMCTL() {
|
|
|
973febb |
systemctl --no-pager "$@"
|
|
|
973febb |
}
|
|
|
973febb |
|
|
|
973febb |
-__INTERNAL_SERVICES_LIST="$BEAKERLIB_DIR/services_list"
|
|
|
973febb |
-
|
|
|
973febb |
rlServiceStart() {
|
|
|
973febb |
# at least one service has to be supplied
|
|
|
973febb |
if [ $# -lt 1 ]; then
|
|
|
973febb |
@@ -997,6 +995,7 @@ rlServiceStart() {
|
|
|
973febb |
local failed=0
|
|
|
973febb |
|
|
|
973febb |
# create file to store list of services, if it doesn't already exist
|
|
|
973febb |
+ local __INTERNAL_SERVICES_LIST="$BEAKERLIB_DIR/services_list"
|
|
|
973febb |
touch $__INTERNAL_SERVICES_LIST
|
|
|
973febb |
|
|
|
973febb |
local service
|
|
|
973febb |
@@ -1092,6 +1091,7 @@ rlServiceStop() {
|
|
|
973febb |
local failed=0
|
|
|
973febb |
|
|
|
973febb |
# create file to store list of services, if it doesn't already exist
|
|
|
973febb |
+ local __INTERNAL_SERVICES_LIST="$BEAKERLIB_DIR/services_list"
|
|
|
973febb |
touch $__INTERNAL_SERVICES_LIST
|
|
|
973febb |
|
|
|
973febb |
local service
|
|
|
973febb |
@@ -1173,6 +1173,7 @@ original state; thus zero is returned when everything is OK.
|
|
|
973febb |
|
|
|
973febb |
rlServiceRestore() {
|
|
|
973febb |
# create file to store list of services, if it doesn't already exist
|
|
|
973febb |
+ local __INTERNAL_SERVICES_LIST="$BEAKERLIB_DIR/services_list"
|
|
|
973febb |
touch $__INTERNAL_SERVICES_LIST
|
|
|
973febb |
|
|
|
973febb |
if [ $# -lt 1 ]; then
|
|
|
973febb |
--
|
|
|
973febb |
2.21.0
|
|
|
973febb |
|