From: Ari Johnson Date: Mon, 29 Sep 2008 15:39:53 +0000 (+0000) Subject: Move old log files and copy core dumps to save/ in restart X-Git-Tag: 0.73p1~28 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=ad12fc753b122b3e7f3878d88d1416db5b9dc5cd;p=cobramush.git Move old log files and copy core dumps to save/ in restart (cherry picked from commit e9dfdba80d976a845483571bdac535babc78a410) --- diff --git a/game/restart.dst b/game/restart.dst index 87fb621..2a65358 100644 --- a/game/restart.dst +++ b/game/restart.dst @@ -164,7 +164,16 @@ if [ -r "$PANICDIR/$PANICDB" ]; then fi fi -rm -f log/*.log +# Move the last set of log files to save/ +mv -f log/*.log save/ + +# Copy the latest core or netmud.core to save/ +if [ -r "core" ]; then + cp core save/ +fi +if [ -r "netmud.core" ]; then + cp netmud.core save/ +fi if [ -r "data/$OUTDB$SUFFIX" ]; then rm -f save/$INDB$SUFFIX.old