ports/www/trac-devel/files/tracd.in
Jochen Neumeister 87a6c11e0a New port: www/trac-devel
Trac uses a minimalistic approach to web-based software project management.
Our mission; to help developers write great software while staying out of
the way.  Trac should impose as little as possible on a team's established
development process and policies.

All aspects of Trac have been designed with one single goal, to simplify
tracking and communication of software issues, enhancements and monitoring
overall progress.

What is Trac?

    * An integrated system for managing software projects
    * An enhanced wiki
    * A flexible web-based issue tracker
    * An interface to the Subversion revision control system

At the core of Trac lies an integrated wiki and issue/bug database. Using
wiki markup, all objects managed by Trac can directly link to other
issues/bug reports, code changesets, documentation and files.

WWW: http://trac.edgewall.org/

Reviewed by:	tcberner
Differential Revision:	https://reviews.freebsd.org/D14588
2018-03-07 19:42:09 +00:00

61 lines
1.7 KiB
Bash

#!/bin/sh
#
# tracd startup
#
# $FreeBSD$
# PROVIDE: tracd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable or configure tracd:
# tracd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable tracd.
# tracd_listen (str): The host name or IP address to bind tracd to.
# By default tracd listens 0.0.0.0, i.e. all the
# available addresses on all interfaces.
# tracd_port (str): The port number to bind to, 80 by default.
# tracd_pidfile (str): When daemonizing, file to which to write pid
# if not to /var/run/tracd.pid.
# tracd_envdir (str): Directory of the project environments. Set to
# "/home/trac" by default.
# tracd_env (str): The project environment name while using single
# environment mode. The default is empty, meaning
# multiproject mode.
# tracd_args (str): Extra arguments passed to tracd startup
# command. Empty by default.
#
. /etc/rc.subr
name="tracd"
rcvar=tracd_enable
tracd_enable=${tracd_enable:-"NO"}
tracd_listen=${tracd_listen:-"0.0.0.0"}
tracd_port=${tracd_port:-"80"}
tracd_pidfile=${tracd_pidfile:-"/var/run/tracd.pid"}
tracd_envdir=${tracd_envdir:-"/home/trac"}
tracd_env=${tracd_env:-""}
tracd_args=${tracd_args:-""}
load_rc_config ${name}
command_args="--daemonize --hostname=${tracd_listen} --port=${tracd_port}"
command_args="${command_args} --pidfile=${tracd_pidfile} ${tracd_args}"
required_dirs=${tracd_envdir}
pidfile=${tracd_pidfile}
if [ -z "${tracd_env}" ]; then
_trac_env="--env-parent-dir ${tracd_envdir}"
else
_trac_env="${tracd_envdir}/${tracd_env}"
command_args="${command_args} --single-env"
fi
command_args="%%PREFIX%%/bin/tracd ${command_args} ${_trac_env}"
command="%%PYTHON_CMD%%"
run_rc_command $1