Page 2 of 2

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 16:03
by Mirery
w1lla wrote:did you restart apache2?
Yes restart, removed and installed again... Nothing changed...

It seems the run command can't handle the $args or what &args do i have to add there???

The Wiki says:
Now you may run the following command to start the server : ./run --start
But that is the part which isn't working that's strange cause the run_console is working...

I mean i have no Problem using screen and it's no Problem that i can't restart manialive in client... But only cause i know how to handle debian and my server... What about other People? That't why i wrote it down in Forum so anybody can check if it's just me configuratet something wrong (i strict folloed the instruction for Dedicated Servers and expansion...

Like i say it's working for me with screen run_console and btw usually I run the whole Server without apache2 ^^ Even that is working fine. I removed everything not neccessary for an fast gameserver... The Database is on a second server^^

BTW @reaby and oliver I don't won't to say your work is bad!!! It's the best Tool I know for TM since i worked with Fast2.4.7 Years ago i also testet Fast4 but it's not so cool like yours. Like i said in an other thread i saw your tool on an other server asked the admin about what tool it is and since that day i use it too. I just wanted to help with some problems cause perhaps more users would like to use it but when it isn't working like the Wiki says it's hard for linux beginners...

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 16:09
by w1lla
did you try

Code: Select all

which php
in console?

Arguments used can be the following but its from an old manialive.
First start
To get you started very quickly most configuration is already done. In fact, if you are running a just downloaded Trackmania Dedicated Server and you haven't done any changes apart from setting a server name, you should already be good to go. If you have made some small changes for example the xml-rpc port or the Super Admin Password you can use the command line configuration. Here are the parameters you can add in the launch script

--help: displays the ManiaLive command line help
--rpcport=xxx : xxx represents the xmlrpc to use for the connection to the server
--address=xxx : xxx represents the address of the server, it should be an IP address or localhost
--user=xxx : xxx represents the name of the user to use for the communication. It should be User, Admin or SuperAdmin
--password=xxx : xxx represents the password relative to --user Argument
--dedicated_cfg=xxx : xxx represents the name of the Dedicated configuration file to use to get the connection data. This file should be present in the Dedicated's config file.
--manialive_cfg=xxx : xxx represents the name of the ManiaLive's configuration file. This file should be present in the ManiaLive's config file.
Here is a sample of how to start a ManiaLive instance:

php.exe bootstrapper.php --dedicated_cfg=dedicated_cfg.txt --manialive_cfg=config.ini
Source:

http://code.google.com/p/manialive/wiki ... tm=6#Linux

About /dev/null:

http://askubuntu.com/questions/514748/w ... ell-script

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 16:41
by Mirery
w1lla wrote:did you try

Code: Select all

which php
in console?

Yes
golf995:~# which php
/usr/bin/php
But it also don't change anything if i edit the run.ini this way... Error is still the same!

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 17:51
by reaby
Mirery wrote: But it also don't change anything if i edit the run.ini this way... Error is still the same!
I found the cause :3
It was indeed yet another newline problem :oops:

to fix, change line 42:

Code: Select all

value=`echo "$line" | awk -F"=" '{print $2}'`
to following:

Code: Select all

value=`echo "$line" | awk -F"=" '{gsub(/[ \r\n]+$/, "", $2); print $2}'`
I'll add the update for the 0.9.7 zip-files.. so it will be available for new downloads later on!

*edit*
can you confirm that the fix works for you, before i rush updating :)
as for me it looks to work..

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 18:30
by Mirery
Yes that works. Nice work and thank you!

BTW /adm manialive restart is also working after this fix!

Re: run Command on Debian always cause Problem

Posted: 04 Jan 2015, 19:42
by undef.de
reaby wrote:
undef.de wrote: Run PHP without a php.ini with "/usr/bin/php -n ".
Hmm... Running php without the php.ini is maybe not a good solution, since the extensions are not loaded then ?
Hmmm... yes... so forget this. ;)

I have no need for extentions in my own PHP build... so...