Page 2 of 8

Re: [Tools] SMAdminTools

Posted: 07 Aug 2012, 23:15
by Triseaux
Yop, good jobs, good plugins.

Nice dev and nice work.

Re: [Tools] SMAdminTools

Posted: 19 Aug 2012, 00:50
by WaLFuN
Hi, very very good work from france :p ! on my server this tools work perfectly ! :) :1010


so sorry for my bad english :(

Re: [Tools] SMAdminTools

Posted: 24 Aug 2012, 20:01
by JuJuBoSc
Thanks, always great to hear :)

Re: [Tools] SMAdminTools

Posted: 31 Aug 2012, 10:03
by ylem
THANK YOU for this awesome tool!

Re: [Tools] SMAdminTools

Posted: 03 Sep 2012, 23:48
by SIMOON
I got two problem with it.
First of all, the program is not running in background, this imply I have to keep my Putty open while playing.
As we can see in your first screenshot (http://image.noelshack.com/fichiers/201 ... nTools.jpg), the prog is running but a new prompt doesn't appear.

Second thing : Any way to put multiple server in Config.ini ?

Re: [Tools] SMAdminTools

Posted: 04 Sep 2012, 10:21
by Dhazge
SIMOON wrote:I got two problem with it.
First of all, the program is not running in background, this imply I have to keep my Putty open while playing.
You can use screen for that, it's very handy for running programs in the background.
Tutorial: http://www.kuro5hin.org/story/2004/3/9/16838/14935

Re: [Tools] SMAdminTools

Posted: 04 Sep 2012, 10:51
by Donzi
Not the best, but it works (Debian Squeeze)

Code: Select all

#############################################################################
#							SMAdminTools v0.2								
#																			
#		Framework for ShootMania dedicated server using XML-RPC.			
#																			
# Plugins based, written in C# using MonoDevelop, run on Linux / Windows.	
# http://code.google.com/p/smadmintools/										
# http://forum.maniaplanet.com/viewtopic.php?f=261&t=12115					
#																			
#############		Build by JuJuBoSc under GNU GPL v3
#																			
#																			
#																			
#																			
#																			
#StartLinux.sh rewriten by DNW^Donzi										
#############################################################################
#!/bin/sh

MYEXE="SMAdminTools.exe"
MYCONFIG="Config.ini"
MYFRAMEWORK="mono"
MYSCREENNAME="SMA1"
MYPIDFILE="SMA.pid"

#############################################################################
case "$1" in

start)
if test -f $MYPIDFILE ; then
	kill -TERM `cat $MYPIDFILE` >/dev/null 2>&1
	rm $MYPIDFILE >/dev/null 2>&1
	sleep 1
	screen -dmS $MYSCREENNAME $MYFRAMEWORK $MYEXE $MYCONFIG
	ps -ef | grep SCREEN | grep $MYFRAMEWORK | grep $MYSCREENNAME | grep -v grep | awk ' { print $2 }' > $MYPIDFILE
	echo SMAdminTools $MYSCREENNAME restart
else
	screen -dmS SMA mono $MYEXE $MYCONFIG
	ps -ef | grep SCREEN | grep $MYFRAMEWORK | grep $MYSCREENNAME | grep -v grep | awk ' { print $2 }' > $MYPIDFILE
	echo SMAdminTools $MYSCREENNAME started
fi
    ;;

stop)
	kill -TERM `cat $MYPIDFILE` >/dev/null 2>&1
	rm $MYPIDFILE >/dev/null 2>&1
	echo SMAdminTools $MYSCREENNAME stopped
	;;
esac

Re: [Tools] SMAdminTools

Posted: 04 Sep 2012, 15:51
by SIMOON
perfectly oks with screen.
Thanks

Re: [Tools] SMAdminTools

Posted: 11 Sep 2012, 13:45
by PoLLi
is there any way to run this tool on several dedicated Server on the same machine ?
This Tool is so great!

Re: [Tools] SMAdminTools

Posted: 14 Sep 2012, 22:10
by Donzi
each instance of the tool into a private folder and edit the config is enough
or
with the startscript edit the
MYCONFIG="Config.ini"
to another ini

or on windows make copies from StartWindows.bat and edit the batch-file, same as above, to another ini