aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-12-09 15:26:46 +1000
committerDavid Walter Seikel2016-12-09 15:26:46 +1000
commitca6e97a120ea8481025632748acc1718229bc865 (patch)
tree192b613b61c646bdd7c464ef8fda5185b8365b8f /scripts
parentScript to create a sim. I should test it. (diff)
downloadopensim-SC_OLD-ca6e97a120ea8481025632748acc1718229bc865.zip
opensim-SC_OLD-ca6e97a120ea8481025632748acc1718229bc865.tar.gz
opensim-SC_OLD-ca6e97a120ea8481025632748acc1718229bc865.tar.bz2
opensim-SC_OLD-ca6e97a120ea8481025632748acc1718229bc865.tar.xz
Script to setup the monit contral files.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/go_live.sh12
1 files changed, 12 insertions, 0 deletions
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 @@
1#!/bin/bash
2
3OSPATH="/opt/opensim"
4
5for i in $(seq 99)
6do
7 j=$(printf "sim%02d" $i)
8 if [ -e "$OSPATH/config/$j" ]
9 then
10 sudo ln -s $OSPATH/config/$j/opensim-monit.conf /etc/monit/conf.d/$j.conf
11 fi
12done