aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-12-09 07:16:10 +1000
committerDavid Walter Seikel2016-12-09 07:16:10 +1000
commitf96afdb62bc05dd4c2ec4ba53a9978218bd82746 (patch)
treec369c8b35426a31aa65395c29593fc2cd93ded81 /scripts
parentAdd asset fixing Perl script, though likely to convert it to Lua later. (diff)
downloadopensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.zip
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.gz
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.bz2
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.xz
Various little clean ups.
Diffstat (limited to '')
-rw-r--r--scripts/opensim-crontab.txt16
-rw-r--r--scripts/opensim.tmux.conf4
-rwxr-xr-xscripts/start-sim2
3 files changed, 6 insertions, 16 deletions
diff --git a/scripts/opensim-crontab.txt b/scripts/opensim-crontab.txt
deleted file mode 100644
index 2a0dbed..0000000
--- a/scripts/opensim-crontab.txt
+++ /dev/null
@@ -1,16 +0,0 @@
1# to see current crontab for opensim
2# $ sudo crontab -u opensim -l
3#
4# to install this crontab for opensim:
5# $ cat /opt/opensim/current/scripts/opensim-crontab.txt | sudo crontab -u opensim -
6#
7# at midnight, remove old logs, files created 3 or more days ago
8#0 0 * * * find /var/log/opensim -ctime +1 -delete
9# experimental version using savelog -c cycles all opensim log files over 7 days
10#0 0 * * * /usr/bin/savelog -c 7 /var/log/opensim/*.log > /dev/null
11
12# Backup the inventories and sims every week.
13#0 */6 * * * /opt/opensim/current/scripts/backup-sims.sh
14
15# Only backup inventories on the grid server itself.
16#55 */6 * * * /opt/opensim/current/scripts/backup-inventories.sh
diff --git a/scripts/opensim.tmux.conf b/scripts/opensim.tmux.conf
index ecd0b04..c101f88 100644
--- a/scripts/opensim.tmux.conf
+++ b/scripts/opensim.tmux.conf
@@ -14,6 +14,7 @@ set-option -g bell-on-alert on
14 14
15set-option -g history-limit 100000 15set-option -g history-limit 100000
16 16
17# These three wont work under Ubuntu 16.04.
17set-option -g mouse-resize-pane on 18set-option -g mouse-resize-pane on
18set-option -g mouse-select-pane on 19set-option -g mouse-select-pane on
19set-option -g mouse-select-window on 20set-option -g mouse-select-window on
@@ -37,7 +38,10 @@ set-option -g visual-content on
37set-option -g visual-silence on 38set-option -g visual-silence on
38 39
39set-option -gw clock-mode-style 24 40set-option -gw clock-mode-style 24
41# This wont work under Ubuntu 16.04.
40set-option -gw mode-mouse on 42set-option -gw mode-mouse on
43# Instead do this (also defaults to turning on the above three mouse things) -
44#set-option -gw mouse on
41 45
42# Highlight active window 46# Highlight active window
43set-option -gw window-status-current-bg red 47set-option -gw window-status-current-bg red
diff --git a/scripts/start-sim b/scripts/start-sim
index c9cca04..936fe13 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -102,6 +102,7 @@ case $(basename $0) in
102 ;; 102 ;;
103 103
104 "backup-inventory") 104 "backup-inventory")
105 cd ${PRGDIR}
105 $SUDO ${PRGDIR}/gitAR.sh i "${inventory}" 106 $SUDO ${PRGDIR}/gitAR.sh i "${inventory}"
106 user=$(sanitize "${inventory}") 107 user=$(sanitize "${inventory}")
107 # Add the full date and time to create the IAR file name. 108 # Add the full date and time to create the IAR file name.
@@ -112,6 +113,7 @@ case $(basename $0) in
112 ;; 113 ;;
113 114
114 "backup-sim") 115 "backup-sim")
116 cd ${PRGDIR}
115 $SUDO ${PRGDIR}/gitAR.sh o "${title}" 117 $SUDO ${PRGDIR}/gitAR.sh o "${title}"
116 sim=$(sanitize "${title}") 118 sim=$(sanitize "${title}")
117 # Add the full date and time to create the OAR file name. 119 # Add the full date and time to create the OAR file name.