projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae37e3a
)
Move old log files and copy core dumps to save/ in restart
author
Ari Johnson
<ari@theari.com>
Mon, 29 Sep 2008 15:39:53 +0000
(15:39 +0000)
committer
CobraMUSH
<cobramush@nveid.com>
Tue, 4 Mar 2008 21:22:14 +0000
(21:22 +0000)
(cherry picked from commit
e9dfdba80d976a845483571bdac535babc78a410
)
game/restart.dst
patch
|
blob
|
history
diff --git
a/game/restart.dst
b/game/restart.dst
index 87fb621c11bc514a2edb9ce54eac7d32f8d1ace7..2a653587194b17c2013f8d39cb4777f3d47e804e 100644
(file)
--- 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