diff options
author | David Walter Seikel | 2016-12-09 15:26:46 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-12-09 15:26:46 +1000 |
commit | ca6e97a120ea8481025632748acc1718229bc865 (patch) | |
tree | 192b613b61c646bdd7c464ef8fda5185b8365b8f | |
parent | Script to create a sim. I should test it. (diff) | |
download | opensim-SC-ca6e97a120ea8481025632748acc1718229bc865.zip opensim-SC-ca6e97a120ea8481025632748acc1718229bc865.tar.gz opensim-SC-ca6e97a120ea8481025632748acc1718229bc865.tar.bz2 opensim-SC-ca6e97a120ea8481025632748acc1718229bc865.tar.xz |
Script to setup the monit contral files.
-rwxr-xr-x | scripts/go_live.sh | 12 |
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 | |||
3 | OSPATH="/opt/opensim" | ||
4 | |||
5 | for i in $(seq 99) | ||
6 | do | ||
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 | ||
12 | done | ||