From ad2ab457dfe641fd23d0e22b181e60abfec27f0a Mon Sep 17 00:00:00 2001 From: Nicola Date: Wed, 10 Nov 2021 10:40:20 +0000 Subject: [PATCH] DCV needs a restart after the configuration file is changed --- modules/26.configure.dcv.alb.compute.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/26.configure.dcv.alb.compute.sh b/modules/26.configure.dcv.alb.compute.sh index efd60ac..6b44911 100644 --- a/modules/26.configure.dcv.alb.compute.sh +++ b/modules/26.configure.dcv.alb.compute.sh @@ -16,7 +16,6 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - # Intall DCV con compute Nodes. set -x @@ -30,12 +29,18 @@ configureDCVforALB() { sed -i -e "s|${pattern}|${replace}|" "/etc/dcv/dcv.conf" } +restartDCV() { + + systemctl restart dcvserver.service + +} # main # ---------------------------------------------------------------------------- main() { echo "[INFO][$(date '+%Y-%m-%d %H:%M:%S')] configure.dcv.alb.compute.sh: START" >&2 configureDCVforALB + restartDCV echo "[INFO][$(date '+%Y-%m-%d %H:%M:%S')] configure.dcv.alb.compute.sh: STOP" >&2 }