So what are we doing about it? Well we have implented a system that will automatically start up programs you specify when the server is rebooted so if you want your psybnc or eggdrop coming back up instantly without running some silly crontab then this is for you.
Ok the first thing to do is create the file .reboot in your home directory
- Code: Select all
nano ~/.reboot
Now we have two options, so I'll give examples of how each works.
Command mode:
- Code: Select all
# This is an example of a command mode reboot file
/home/tim/eggdrop/eggdrop -m bot.conf
/home/tim/psybnc/psybnc
echo "started my stuff automatically" > /home/tim/reboot_log
Script mode:
- Code: Select all
#!/usr/local/bin/php
# ok this is an example of script mode, which is chosen by
# having #! as the first 2 characters in the file.
<?
$home = "/home/tim";
$psybnc = "psybnc/psybnc";
$eggy = "eggdrop/eggdrop -m bot.conf";
$log_file = "reboot_log";
$log_text = "started my stuff automatically";
// start the psybnc
exec($home . '/' . $psybnc);
// start the eggy
exec($home . '/' . $eggy);
// write the log
$file = fopen($home . '/' . $log_file);
$write = fwrite($file, $log_text);
fclose($file);
?>
Then save the file and exit (CTRL + X in nano).
Any questions on using this, just post them here




-= 0day symbian+pda -> 
