Author: soliton
Date: Sat Oct 4 02:33:19 2008
New Revision: 29844
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29844&view=rev
Log:
* move the profile to a better place and exit on fatal errors
Modified:
trunk/utils/mp-server/run_campaignd
Modified: trunk/utils/mp-server/run_campaignd
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/run_campaignd?rev=29844&r1=29843&r2=29844&view=diff
==============================================================================
--- trunk/utils/mp-server/run_campaignd (original)
+++ trunk/utils/mp-server/run_campaignd Sat Oct 4 02:33:19 2008
@@ -33,5 +33,9 @@
COMMAND="$HOME/bin/campaignd-$VERSION $THREADS $PARAMETERS"
echo "started $VERSION campaignd with command: '$COMMAND' at: $DATE"
$COMMAND &> $SERVERBASE/logs/campaignd.$DATE
-
+ mv gmon.out ../gmon.$DATE.out &> /dev/null
+ [ "$?" != "0" ] || exit
+ [ "$?" != "1" ] || die "File I/O error."
+ [ "$?" != "2" ] || die "Could not parse config file."
+ [ "$?" != "3" ] || die "Could not bind to port."
done
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits