Edgewall Software

Changes between Initial Version and Version 1 of Bitten Slave Daemon


Ignore:
Timestamp:
Jul 22, 2009, 3:53:27 PM (15 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Bitten Slave Daemon

    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}}}