Page 1 of 1
Launch ManiaControl when I restart my VPS
Posted: 20 Sep 2014, 16:32
by lucsw
Hi all, I want to launch ManiaControl when I restart my VPS, so how to do ?

Re: Launch ManiaControl when I restart my VPS
Posted: 20 Sep 2014, 18:39
by TheBigG.
you could do it via cron and the @reboot atribute
Re: Launch ManiaControl when I restart my VPS
Posted: 20 Sep 2014, 20:35
by lucsw
How do a cron ?
Re: Launch ManiaControl when I restart my VPS
Posted: 20 Sep 2014, 21:07
by TheBigG.
you have to start the server before, so you could create a reboot.sh with
Code: Select all
#!/bin/sh
cd /path_to_maniaplanet_server
/path_to_maniaplanet_server/ManiaPlanetServer /game_settings=MatchSettings/eXpansion_autosave.txt /dedicated_cfg=dedicated_cfg.cfg /profilecpu
sleep 60
php /path_to_maniacontrol/ManiaControl.php
after that
after that it should open vim or nano or what ever editor is installed, than you navigate to the end of the file and put there
Code: Select all
@reboot /path_to_your_createt_reboot.sh/reboot.sh
and after that it should start the server and maniacontrol after reboot
may some of the maniacontrol developers can help you more with it since everything that i wrote is theoretical because i don't use maniacontrol or somebody else who does reboot his server.
Re: Launch ManiaControl when I restart my VPS
Posted: 21 Sep 2014, 18:26
by lucsw
OK, I try after ^^'
But I have found another soltuion.
Launch the server and the .sh who launch the server, he launchs MC too :/
But don't know if it work