Crontab Setting for Running PsyBNC Automatically
When your server stops working and you must reboot it, the psyBNC can’t start automatically. But with this simple trick, you’ll be able to start you psyBNC automatically when the server starts from a reboot.
First thing to do is you must edit psbncchk file in your psyBNC folder.
$ nano psybncchk
Search for this line:
Change the path into your psyBNC path, look at this example:
Save the file and exit the editor.
Change the default editor by using this command:
$ export EDITOR=nano
$ setenv EDITOR pico
I really like using nano (pico) editor, it’s simple and user friendly. Well, it might be because I used to have a windows box so the nano editor really looks like Notepad to me.
Ok, next step is editing the crontab file:
$ crontab -e
Insert this line to the file:
0,10,20,30,40,50 * * * * /home/nobody/psybnc/psybncchk >/dev/null 2>&1
Remember, change the path to your psybnc path.
This crontab command means it will run the psybncchk file every 10 minutes.
The psybncchk will check whether your psyBNC is running or not, and when your psyBNC is not running, psybncchk will run the psyBNC.
How to make psybot
1 wget http://idbnc.net/script/psyBNC-2.3.2-7.tar.gz
2 tar -zxvf psyBNC-2.3.2-7.tar.gz
3 cd psybnc
5 nano psybnc.conf
6 upload DEFAULT.SCRIPT ke directory psybnc/scripts/
download here –> http://idbnc.net/script