Skip to content

Commit

Permalink
DCV needs a restart after the configuration file is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaven committed Nov 10, 2021
1 parent 198c359 commit ad2ab45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/26.configure.dcv.alb.compute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit ad2ab45

Please sign in to comment.