PennMUSH Community

Changeset 1305

Show
Ignore:
Timestamp:
10/03/08 16:18:24 (2 months ago)
Author:
shawnw
Message:

Merge changes from trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.183

    r1302 r1305  
    2121 * @config/save foo=bar acts like @config/set but also attempts to 
    2222   alter the original configuration file to reflect the new value. 
    23   
     23 * The restart script appends a timestamp to the backups of 
     24   existing databases and log files that it makes. Suggested 
     25   by Ray, 
     26 
    2427Version 1.8.3 patchlevel 7                      Oct 01, 2008 
    2528 
  • 1.8.3/branches/devel/game/restart

    r1195 r1305  
    126126fi 
    127127 
    128 # Copy the last set of log files to save/ 
    129 mv -f log/*.log save/ 
     128# Copy the last set of log files to save/ with a timestamp. 
     129TIMESTAMP=`date +%Y%m%d%H%M%S` 
     130for log in log/*.log; do 
     131    BASE=`basename $log` 
     132    mv -f $log save/$BASE.$TIMESTAMP 
     133done 
    130134 
    131135if [ -r "data/$OUTDB$SUFFIX" ]; then 
    132    rm -f save/$INDB$SUFFIX.old 
    133    mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old 
     136   ln -f data/$INDB$SUFFIX save/$INDB$SUFFIX.old 
     137   mv -f data/$INDB$SUFFIX save/$INDB$SUFFIX.$TIMESTAMP 
    134138   mv data/$OUTDB$SUFFIX data/$INDB$SUFFIX 
    135139else 
     
    157161export GAMEDIR 
    158162 
    159 LC_ALL=$LANG LANG=$LANG ./netmush $@ $GAMEDIR/$CONF_FILE & 
     163LC_ALL=$LANG LANG=$LANG ./netmush $@ --pid-file=$PIDFILE $GAMEDIR/$CONF_FILE &