psyBNC comes with a clever and simple shell-script, that starts it up if it isn't already running. Combined with crontab this makes for a good way to ensure it gets started up at reboot, and in case the bouncer should crash. The script below was made by the authors of psyBNC, just edited to work for sBNC. Neither I, nor they, should be held responsible for any damage this could do to your system (standard issue disclaimer).
sbncchk.sh in ~/sbnc/ (change username to the user running sBNC):#!/bin/sh SBNCPATH=/home/username/sbnc if test -r $SBNCPATH/sbnc.pid; then SBNCPID=$(cat $SBNCPATH/sbnc.pid) if $(kill -CHLD $SBNCPID >/dev/null 2>&1) then exit 0 fi fi cd $SBNCPATH ./sbnc &>/dev/null
chmod +x sbncchk.sh
crontab file in the crontab editor, like so (in a shell):crontab -e
crontab (should not need to modify this):@reboot $HOME/sbnc/sbncchk.sh > /dev/null 2>&1 */10 * * * * $HOME/sbnc/sbncchk.sh > /dev/null 2>&1