Archive > BeBot Hyborian support
Starting Bot as a service on a Linux system
tsafarog:
Hello guys,
need your help
I am running the Bot through an SSH client always by giving the php5 command. The problem is that when my SSH client crash for a reason the Bot disconnects. Is there a way to start the Bot as a service so i wont have to relog when the Bot crash and will not have to pay so much attention to it??
Thank you in advance
Getrix:
Have a look on "screen" function in linux
Yite:
Yup works great in screens (running multiple bots each in their own 'screen') for some more information check out Getrix' comments here: http://bebot.link/ao-0-6-support/how-to-recall-logginf-screen-of-bebot-%28ssh%29/msg12028/#msg12028
tsafarog:
i know what you mean....
But my problem is for example when i am away from home ..... i dont want to have my pc running putty all the time. What if it crashes when i am not home? I am not familiar with the screen command. If i setup screen, will i be able to close SSH and bot will keep running???
Yite:
yeah basically what you do is you create a screen session (from memory screen -s sockname)
In this session you will start your bot
to leave the screen session press ctrl-a ctrl-d (or just ctrl-a d can't remember)
At any point you want to check up on the session run:
screen -r name (or just screen -r to see a list of screens)
If your ssh session dies your bot will keep on running.
Navigation
[0] Message Index
[#] Next page
Go to full version