In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)Web page to restart B3?
Pages: [1] 2   Go Down
  Print  
Author Topic: Web page to restart B3?  (Read 988 times) Bookmark and Share
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« on: December 01, 2011, 06:38:48 AM »

Does anyone have a web page that can be added to the b3 server so that nominated indviduals can be given control to start/stop/restart the bot without having to access the server directly?  I'm not always around to restart the bot when our server crashes or the bot becomes unresponsive, so I'd like to know if anyone has created a web page to allow others to do it
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: December 01, 2011, 07:02:21 AM »

many options...

1) webmin
2) lower the !restart command level
3) cod control: http://www.masterzock.de/50147099480969901/5014709a451325001/index.html

to name just a few
« Last Edit: December 01, 2011, 07:04:31 AM by MordyT » Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« Reply #2 on: December 02, 2011, 01:16:42 AM »

They appear to relate to the server Mordy, but I'm only talking about the b3 bot itself.  Webmin is ok for server administration, !restart only works if the bot is currently running and cod control appears to restart the entire game server, not the bot process.

All I'm looking for is a web page with a button on it that can start/stop/restart the b3 bot and give a current status as to what its currently doing.  We don't have problems with the game server itself, just that sometimes I need to let others restart the b3 bot when I'm not around.
Logged
Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #3 on: December 02, 2011, 01:41:11 AM »

I'm using the solution with Monit Courgette posted here:
http://forum.bigbrotherbot.net/configurations/fully-debian-integrated-start-stop-script/

Pretty good.

Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #4 on: December 02, 2011, 05:26:20 AM »

They appear to relate to the server Mordy, but I'm only talking about the b3 bot itself.  Webmin is ok for server administration, !restart only works if the bot is currently running and cod control appears to restart the entire game server, not the bot process.

All I'm looking for is a web page with a button on it that can start/stop/restart the b3 bot and give a current status as to what its currently doing.  We don't have problems with the game server itself, just that sometimes I need to let others restart the b3 bot when I'm not around.
Both webmin and cod control can be modified to only restart b3. It is as simple as changing the startup line from a cod line/server line to B3's startup...

If you were on windows I would recommend firedaemon....
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 134
Offline Offline
eliteclangaming.com
WWW
« Reply #5 on: December 02, 2011, 09:22:12 AM »

I used Webmin to do this when I had been running on a Linux machine, its nearly as good as FireDaemon plus it includes an FTP server that worked quite well. On windows I have had nothing but trouble with Filezilla. If I remember correctly the PHP admin tool was more powerful than PHPMyAdmin for doing anything with your B3 database.

I will try and check my old linux box this weekend to see how I set it up.
Logged

xfire: blitzwright
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #6 on: December 04, 2011, 02:35:28 AM »

i have cod control up&running now for about over a year...
for my gameservers AND B3 too...

you can config cod control to start/stop whatever you want...
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« Reply #7 on: December 13, 2011, 04:34:04 PM »

Thanks for responding guys.

Miramar - any chance of posting your cod_controld.py file (minus the passwords of course!).  The instructions leave me a little confused e.g.

ALLOWED_SVR
SCREEN_PID

is the ALLOWED_SVR supposed to be set to the b3 start script i.e. 'python2.6 b3_run.py b3/conf/b3.xml' ??  (I'm assuming it must be as its the only place to specify what you want to start!).  But I've no idea what SCREEN_PID is supposed to stand for.

Thanks
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #8 on: December 14, 2011, 05:48:25 AM »

Thanks for responding guys.

Miramar - any chance of posting your cod_controld.py file (minus the passwords of course!).  The instructions leave me a little confused e.g.

ALLOWED_SVR
SCREEN_PID

is the ALLOWED_SVR supposed to be set to the b3 start script i.e. 'python2.6 b3_run.py b3/conf/b3.xml' ??  (I'm assuming it must be as its the only place to specify what you want to start!).  But I've no idea what SCREEN_PID is supposed to stand for.

Thanks
I assume screen pid is uses for screen.
When you start a program and then exit putty, it exits the program. Workaround is to start it in a new screen - screen -mS Name will start a screen with the heading "Name". Then you do a Ctrl+A+D to detach it and later a screen -r Name to re-attach to the screen.

The PID would be the name, you would want each on to have a unique name...
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« Reply #9 on: December 14, 2011, 01:09:21 PM »

I simply ctrl-z to exit/stop the program and then issue a bg %[job number] to make it run in the background.   

Mordy - have you used webmin before to restart b3?  I've taken a look at it and it looks quite cool and easy to use.  Any advice?
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #10 on: December 14, 2011, 01:35:05 PM »

I simply ctrl-z to exit/stop the program and then issue a bg %[job number] to make it run in the background.   

Mordy - have you used webmin before to restart b3?  I've taken a look at it and it looks quite cool and easy to use.  Any advice?
Nope, I have not. CoD Control is what I used to use, back when I had a linux VPS. I have since dropped my VPS when the server crashed and all data was lost.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #11 on: December 18, 2011, 06:03:11 AM »

Code:
SCREEN_PID = '/var/run/screen'

so the screen_pid is the path where screen locates its pid files for every screen it opens...


Code:
ALLOWED_SVR=["cod2_lnxded", "cod4_lnxded", "start.sh"]

and allowed_svr is the name of every program/file cod_control is allowed to execute
in my case i have added a start.sh because im starting every server with a little (re)start script which restarts it if it crashes...

(I'm assuming it must be as its the only place to specify what you want to start!).
what you want to start is defined in the config.php of the web-based part of cod_control... including parameters etc...

PS: if you pm me for help then also make sure that you are accepting incoming pms too o_O
« Last Edit: December 18, 2011, 06:32:50 AM by Miramar » Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3, RO2, COD-BO
Posts: 127
Offline Offline
« Reply #12 on: December 23, 2011, 05:23:31 AM »

PS: if you pm me for help then also make sure that you are accepting incoming pms too o_O

huh?  I don't understand.  I've not switched PM's off and I've not received any PM's from you.  There isn't even an option in the control panel to switch off PM's, only block people who you specify (my list is empty).

Sorry if you thought I was ignoring you.  Thanks for the clarification on the cod_control stuff.  I'm trying to convert cod_control to centos but not having much luck unfortunetly (I'm a linux newbie)
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #13 on: December 23, 2011, 05:35:20 AM »

No one is blocking PMs, as standard usergroups on this board cannot send PMs.
Only a select few people can send them.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #14 on: December 25, 2011, 10:29:22 AM »

so why could he send me a pm and i can not send/reply?
Logged
Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal