diff options
Diffstat (limited to 'devel/trac-bitten/files/bitten-slave.in')
-rw-r--r-- | devel/trac-bitten/files/bitten-slave.in | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/devel/trac-bitten/files/bitten-slave.in b/devel/trac-bitten/files/bitten-slave.in deleted file mode 100644 index 1847de99b67a..000000000000 --- a/devel/trac-bitten/files/bitten-slave.in +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: bitten_slave -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Bitten continuous integration build slave -# - -. /etc/rc.subr - -name=bitten_slave -rcvar=bitten_slave_enable -logfile=/var/log/bitten-slave.log -conffile=%%ETCDIR%%/bitten-slave.conf -workdir=/var/lib/bitten-slave - -load_rc_config ${name} - -command=%%PREFIX%%/bin/bitten-slave -command_args="-f ${conffile} -d ${workdir} --log=${logfile} ${bitten_slave_urls}" -command_interpreter=%%PYTHON_CMD%% -bitten_slave_user=%%USERS%% -pidfile=/var/lib/bitten-slave/bitten-slave.pid - -start_cmd=bitten_start -stop_postcmd=bitten_cleanup - -bitten_start() -{ - echo "Starting ${name}." - %%TOUCH%% $logfile && %%CHOWN%% ${bitten_slave_user} $logfile - /usr/sbin/daemon -cf -p ${pidfile} -u ${bitten_slave_user} ${command} ${command_args} -} - -bitten_cleanup() { - [ -f ${pidfile} ] && %%RM%% ${pidfile} -} - -run_rc_command "$1" |