From f96afdb62bc05dd4c2ec4ba53a9978218bd82746 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 9 Dec 2016 07:16:10 +1000 Subject: Various little clean ups. --- scripts/opensim-crontab.txt | 16 ---------------- scripts/opensim.tmux.conf | 4 ++++ scripts/start-sim | 2 ++ 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 scripts/opensim-crontab.txt (limited to 'scripts') 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 @@ -# to see current crontab for opensim -# $ sudo crontab -u opensim -l -# -# to install this crontab for opensim: -# $ cat /opt/opensim/current/scripts/opensim-crontab.txt | sudo crontab -u opensim - -# -# at midnight, remove old logs, files created 3 or more days ago -#0 0 * * * find /var/log/opensim -ctime +1 -delete -# experimental version using savelog -c cycles all opensim log files over 7 days -#0 0 * * * /usr/bin/savelog -c 7 /var/log/opensim/*.log > /dev/null - -# Backup the inventories and sims every week. -#0 */6 * * * /opt/opensim/current/scripts/backup-sims.sh - -# Only backup inventories on the grid server itself. -#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 set-option -g history-limit 100000 +# These three wont work under Ubuntu 16.04. set-option -g mouse-resize-pane on set-option -g mouse-select-pane on set-option -g mouse-select-window on @@ -37,7 +38,10 @@ set-option -g visual-content on set-option -g visual-silence on set-option -gw clock-mode-style 24 +# This wont work under Ubuntu 16.04. set-option -gw mode-mouse on +# Instead do this (also defaults to turning on the above three mouse things) - +#set-option -gw mouse on # Highlight active window set-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 ;; "backup-inventory") + cd ${PRGDIR} $SUDO ${PRGDIR}/gitAR.sh i "${inventory}" user=$(sanitize "${inventory}") # Add the full date and time to create the IAR file name. @@ -112,6 +113,7 @@ case $(basename $0) in ;; "backup-sim") + cd ${PRGDIR} $SUDO ${PRGDIR}/gitAR.sh o "${title}" sim=$(sanitize "${title}") # Add the full date and time to create the OAR file name. -- cgit v1.1