Archive > BeBot 0.4 support

Bebot on linux-vserver - absolute beginner here...

(1/2) > >>

gennero:
Well, might be a bit hard to help me since I don't know anything about linux but please give it a try  ;D
I'm paying for a vserver, preconfigured with debian 4.0, and since this machine has not a lot to do I thought it would be nice to host our guildbot on it. That was the easy part of it...

Actually I think I did quite a good work until now, apache, php5 and mysql are working, bebot 0.4.3 is installed and working, even under different user than root (aorunner) and no superuser-rights needed.

My problem is:
I do need to have an open connection to the vserver to keep the chatbot running, as soon as I close the shell I'm using to start the bot it is shutting down. No message, just going off.
Is there a way to "install" the bot as a background task or how will I be able to keep the bot running without an open connection?

Dracutza:
searching the forum would have gotten you an answer 4 hours ago.

a better key word would be "SCREENS"

Alreadythere:
There is either a script flying around here that starts bebot as a background service on linux.

Or install the tool "screen" as Dracutza said, it allows you to detach standard-input and -output from the normal shell. Basically something like the following:

--- Code: ---screen -
php StartBot.php Botname
--- End code ---
Then do CTRL+A D to detach.
To re-attach you only need to do screen -r.

Temar:
ok here is the Instruction for screen with Debian

to install

--- Code: ---apt-get install screen

--- End code ---

now you can use 2 ways to start a new screen, i use 2nd cuz i have lots of bots
Start new screen with server address as name

--- Code: ---screen -

--- End code ---
Start new screen with "botname" as name ofc botname being what ever you want

--- Code: ---screen -S botname

--- End code ---

doing this will goto the window(if 1) or list them if more

--- Code: ---screen -r

--- End code ---

you can use the pid or the name or both together to goto a window, i pref the name since i use botname as name

--- Code: ---screen -r botname

--- End code ---

inside a window u can close it and end all actions inside with

--- Code: ---exit

--- End code ---

to detach the screen so you go back to main and it runs in back ground you do

--- Code: ---[CTRL] + a then d

--- End code ---

gennero:
Thank you all, especially for the detailed howto

I found the script before posting here but it didn't work for me, in the thread is mentioned to start the bot with a perimeter ('php StartBot.php &') but this didn't work either.
The screen tool is working fine

@Dracutza
I did several forum searches before but they didn't show up any result according to my problem. But I'm still wondering how I should have come to the idea to search for "screen" or "screens", as I said I'm new to linux and I never heard of this tool before.

Navigation

[0] Message Index

[#] Next page

Go to full version