When your server stops working and you must reboot it, the psyBNC cant 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:
PSYBNCPATH=/home/foobar/psybnc
Change the path into your psyBNC path, with your username:
PSYBNCPATH=/home/sisrv/psybnc
Save the file and exit the editor.
Change the default editor by using this command:
$ export EDITOR=nano
Ok, next step is editing the crontab file:
$ crontab -e
Insert this line to the file:
0,10,20,30,40,50 * * * * /home/sisrv/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.