Here is a simple script to start bitten-slave as a daemon. This will usually be put in /etc/init.d or wherever your init scripts are kept. This has been tested on Ubuntu Hardy, however should run from any system with only minimal changes. You will need to change the DAEMON_ARG varible to contain a URL which reflects your server. {{{ #! /bin/sh ### BEGIN INIT INFO # Provides: bitten-slave # required-start: $all # required-stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts trac's bitten-slave # Description: starts trac's bitten-slave using start-stop-daemon ### END INIT INFO NAME="bitten-slave" DAEMON_CMD="/usr/bin/bitten-slave" DAEMON_ARG="http://localhost/trac/builds -i 15 test -x $DAEMON_CMD || exit 0 set -e case "$1" in start) echo -n "Running bitten-slave" start-stop-daemon --start -m --quiet --background --pidfile /var/run/bitten-slave.pid --exec $DAEMON_CMD -- $DAEMON_ARG ;; stop) echo -n "Stopping bitten-slave" start-stop-daemon --stop --quiet --pidfile /var/run/bitten-slave.pid --oknodo ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop}" >&2 exit 1 ;; esac exit 0 }}}