Skip to content

Commit ad2ab45

Browse files
committed
DCV needs a restart after the configuration file is changed
1 parent 198c359 commit ad2ab45

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/26.configure.dcv.alb.compute.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1717
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1818

19-
2019
# Intall DCV con compute Nodes.
2120

2221
set -x
@@ -30,12 +29,18 @@ configureDCVforALB() {
3029
sed -i -e "s|${pattern}|${replace}|" "/etc/dcv/dcv.conf"
3130
}
3231

32+
restartDCV() {
33+
34+
systemctl restart dcvserver.service
35+
36+
}
3337

3438
# main
3539
# ----------------------------------------------------------------------------
3640
main() {
3741
echo "[INFO][$(date '+%Y-%m-%d %H:%M:%S')] configure.dcv.alb.compute.sh: START" >&2
3842
configureDCVforALB
43+
restartDCV
3944
echo "[INFO][$(date '+%Y-%m-%d %H:%M:%S')] configure.dcv.alb.compute.sh: STOP" >&2
4045
}
4146

0 commit comments

Comments
 (0)