Alternative Toaster Modification

Alternative version of /etc/init.d/VAVistADemo20060926

Added line keeps DSL, and therefore VistA's clock from running in real time. sudo date $(date +%m%d%H%M%Y -r mumps.mjl)

So now on boot-up the DSL date/time is set to mumps.mjl's date last modified. (which, by the way doesn't change; I have not figured out a simple way to add one minute to my date.) And GT.M doesn't complain.

The idea is to prevent demo data in VistADemo from aging faster than it can be created. Now we just need some demo data. :-)

My version of the complete script is below, I could not get Bhaskar's version to work unmodified.

--gra'pa Z 10:07, 18 Feb 2007 (CST)

This automatically sets system date, starts/stops journaling, and TaskMan. --- PATH=/bin:/usr/bin:/sbin:/usr/sbin source /usr/local/gtm_V5.2-000/gtmprofile cd /var/VAVistADemo20060926/gtm_V5.2-000/g case "$1" in  start)        echo Reset date/time:        sudo date $(date +%m%d%H%M%Y -r mumps.mjl)        /usr/local/gtm_V5.2-000/mupip journal -recover -backward mumps.mjl        ../run RESTART^ZTMB <<EOF Y EOF          ;;    stop) ../run STOP^ZTMKU <<EOF Y Y EOF sleep 5 killall mumps /usr/local/gtm_V5.2-000/mupip journal -recover -backward mumps.mjl ;;   *)        echo "Usage: /etc/init.d/VAVistADemo20060926 {start|stop}"        exit 1 esac exit 0 -
 * 1) !/bin/sh