Edgewall Software

Changes between Initial Version and Version 1 of Bitten Slave Daemon Gentoo


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

added again gentoo daemon file

Legend:

Unmodified
Added
Removed
Modified
  • Bitten Slave Daemon Gentoo

    v1 v1  
     1Here 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
     6DAEMON_CMD="/usr/bin/bitten-slave"
     7DAEMON_ARG="http://<domain>/trac.cgi/dANN/builds -i 15"
     8
     9depend() {
     10        use net
     11}
     12
     13start() {
     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
     19stop() {
     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
     26Be 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.