Edgewall Software

Changes between Version 2 and Version 3 of Bitten Slave Daemon


Ignore:
Timestamp:
Oct 19, 2009, 5:44:23 PM (15 years ago)
Author:
anonymous
Comment:

added ubuntu script

Legend:

Unmodified
Added
Removed
Modified
  • Bitten Slave Daemon

    v2 v3  
    1 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 Gentoo, 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.
    2 
    3 {{{
    4 #!/sbin/runscript
    5 
    6 DAEMON_CMD="/usr/bin/bitten-slave"
    7 DAEMON_ARG="http://<domain>/trac.cgi/dANN/builds -i 15"
    8 
    9 depend() {
    10         use net
    11 }
    12 
    13 start() {
    14         ebegin "Starting bitten-slave"
    15         start-stop-daemon --start -m --quiet --background --pidfile /var/run/bitten-slave.pid --exec $DAEMON_CMD -- $DAEMON_ARG
    16         eend 0 "bitten-slave"
    17 }
    18 
    19 stop() {
    20         ebegin "Stopping bitten-slave"
    21         start-stop-daemon --stop --quiet --pidfile /var/run/bitten-slave.pid --oknodo
    22         eend 0 "bitten-slave"
    23 }
    24 }}}
    25 
    26 Be sure your "Connection timeout for build slaves" under master settings in trac/bitten is high enough to never cause a timeout. If a timeout occurs before the slave finishes it will receive a 403 forbidden error and the daemon will exit and stop performing builds.
     1[Gentoo script]
     2[Ubuntu script]