Launch ManiaControl when I restart my VPS

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: kremsy, Jocy, Wabbitface, steeffeen, NADEO

Post Reply
lucsw
Posts: 47
Joined: 04 Jul 2014, 13:34

Launch ManiaControl when I restart my VPS

Post by lucsw » 20 Sep 2014, 16:32

Hi all, I want to launch ManiaControl when I restart my VPS, so how to do ? :o

TheBigG.
Posts: 404
Joined: 11 Jun 2011, 16:11

Re: Launch ManiaControl when I restart my VPS

Post by TheBigG. » 20 Sep 2014, 18:39

you could do it via cron and the @reboot atribute
Client:
OS: Win10/Debian CPU: Intel 9900k GPU: NVIDIA 1080TI Display: 3x Acer Predator XB271HUbmiprz 1440p@165 Hz

Server:
OS: Debian Stable @ Backports Kernel CPU: Intel 6700k RAM: 32 GB Storage: 2x 256 GB NVMe SSD@Raid 1

lucsw
Posts: 47
Joined: 04 Jul 2014, 13:34

Re: Launch ManiaControl when I restart my VPS

Post by lucsw » 20 Sep 2014, 20:35

How do a cron ?

TheBigG.
Posts: 404
Joined: 11 Jun 2011, 16:11

Re: Launch ManiaControl when I restart my VPS

Post by TheBigG. » 20 Sep 2014, 21:07

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

Code: Select all

crontab -e
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.
Client:
OS: Win10/Debian CPU: Intel 9900k GPU: NVIDIA 1080TI Display: 3x Acer Predator XB271HUbmiprz 1440p@165 Hz

Server:
OS: Debian Stable @ Backports Kernel CPU: Intel 6700k RAM: 32 GB Storage: 2x 256 GB NVMe SSD@Raid 1

lucsw
Posts: 47
Joined: 04 Jul 2014, 13:34

Re: Launch ManiaControl when I restart my VPS

Post by lucsw » 21 Sep 2014, 18:26

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

Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 1 guest