ManiaLive r2028

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive r2028

Post by farfa »

Jojo_44 wrote:Ok thank you.

regards, Jojo

Edit:
The problem is that only the root can access to the start-stop-daemon. A normal user can´t use the start-stop-daemon and i will not run the script as root ;) The problem occurs on all linux debian systems ...

regards, Jojo
You can run the script as a root, but you have to put the following option

Code: Select all

--chuid username
It change the run user before starting the script, see the man page: http://man.cx/start-stop-daemon(8)
Also known as: satanasdiabolo
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: ManiaLive r2028

Post by Knutselmaaster »

Thanks! I was searching for a solution everywhere 8-)
nocturne
Posts: 208
Joined: 23 Jun 2010, 21:31

Re: ManiaLive r2028

Post by nocturne »

How about the majority of us not on Debian..? Compiling s-s-d is simple enough, though it ends up buggy and has a few obvious security repercussions. Though anyone of a mind enough to handle that can figure out how to redirect the console output instead of running as a forced daemon.

For the standard distribution, the included start scripts should work on 90% of setups, not the remaining 10%. Otherwise you'll just end up plagued with the same simple setup questions over and over. A traditional style shell script should be used as standard, with setup-specific scripts perhaps available as alternatives.
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive r2028

Post by farfa »

If you want to run ManiaLive in direct output use

Code: Select all

php bootstrapper.php
But once your session end, the program will be ended too. So you have to find a solution to run it as a background program.
Also known as: satanasdiabolo
User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: ManiaLive r2028

Post by aseco »

You can use the --nodaemon switch for the run script.
It's also written in the wiki: http://code.google.com/p/manialive/wiki ... rst_Launch
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: ManiaLive r2028

Post by oliverde8 »

Hi,

is it normal that onBeginChallenge we receibe the challenge information in a array ad not in a Challenge structure.
It makes it quite confusing, specially that capitals letters in the challenge structure aren't the same as the ones in the array.

And it seems that when you do $challenge = $this->connection->getChallengeInfo(fileName);
$challenge->nbCheckpoints is empty.

I may also be tired on that last one
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive r2028

Post by farfa »

In fact in every DedicatedApi Callback you will receive a structure and not an object. The data are received from the server and directly send to the Callbacks.
Also known as: satanasdiabolo
nocturne
Posts: 208
Joined: 23 Jun 2010, 21:31

Re: ManiaLive r2028

Post by nocturne »

farfa wrote:If you want to run ManiaLive in direct output use

Code: Select all

php bootstrapper.php
But once your session end, the program will be ended too. So you have to find a solution to run it as a background program.
aseco wrote:You can use the --nodaemon switch for the run script.
<span>It's also written in the wiki: <a class="linkclass" href="http://code.google.com/p/manialive/wiki ... </a></span>
It seems neither of you understood what I meant by my post...

Quite simply, s-s-d is a command only available to debian installs, and even then only available to the root user, which is against the standard 'protocol' of assigning a user to manage user processes to avoid having to run scripts as a root user (for many clearly obvious reasons). There's plenty of ways to run a php script as a pseudo-daemon without requiring a specific setup common to a vast minority of users -- a fact I shouldn't have to enlighten you to.
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive r2028

Post by farfa »

Nocturne, you seems to be used to launch script as a pseudo-daemon, can you give us your solution. We can integrate it to the source. And it will be good for the entire community
Also known as: satanasdiabolo
User avatar
Slig
Posts: 637
Joined: 15 Jun 2010, 11:52
Location: TraXicoLand

Re: ManiaLive r2028

Post by Slig »

To start in background on linux, several possibility exist.
- 'nohup' if you just want to detach it from terminal, with stdout stored in a file.
- 'screen' if you want to also be able to "reattach" it later in another terminal
- detaching "by hand", using something like 'php xxxx.php </dev/null >/dev/null 2>&1 &'

If you want on linux to start it at boot time as a standard user, a user crontab with the '@reboot' special field string (see man 5 crontab) can be used to launch a shell script in which you put all things to start using one of the above methods. I never tried the @reboot myself btw, i just discovered it.
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest