From ca6e97a120ea8481025632748acc1718229bc865 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 9 Dec 2016 15:26:46 +1000 Subject: Script to setup the monit contral files. --- scripts/go_live.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/go_live.sh diff --git a/scripts/go_live.sh b/scripts/go_live.sh new file mode 100755 index 0000000..21d7072 --- /dev/null +++ b/scripts/go_live.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +OSPATH="/opt/opensim" + +for i in $(seq 99) +do + j=$(printf "sim%02d" $i) + if [ -e "$OSPATH/config/$j" ] + then + sudo ln -s $OSPATH/config/$j/opensim-monit.conf /etc/monit/conf.d/$j.conf + fi +done -- cgit v1.1