diff options
Diffstat (limited to 'textproc/pootle/files/pootle.in')
-rw-r--r-- | textproc/pootle/files/pootle.in | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/textproc/pootle/files/pootle.in b/textproc/pootle/files/pootle.in deleted file mode 100644 index 415fc50ba7bf..000000000000 --- a/textproc/pootle/files/pootle.in +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: pootle -# REQUIRE: DAEMON -# -# Add the following lines to /etc/rc.conf to run pootle: -# -# pootle_enable (bool): Set it to "YES" to enable pootle. -# Default is "NO". -# pootle_flags (flags): Set extra flags here. More options in pootle(1) -# Default is empty "". -# pootle_logdir (path): Path to pootle log directory. -# Default is "%%POOTLELOGDIR%%". -# Empty is log to /dev/null. -# pootle_user (user): Set user to run pootle. -# Default is "%%POOTLEUSER%%". -# - -. /etc/rc.subr - -name=pootle -rcvar=pootle_enable -pidfile="%%POOTLERUNDIR%%/pootle.pid" -command_interpreter="%%PYTHON_CMD%%" - -required_files="%%PREFIX%%/etc/pootle/localsettings.py" - -command="%%PREFIX%%/bin/PootleServer" - -load_rc_config $name -: ${pootle_enable="NO"} -: ${pootle_user="%%POOTLEUSER%%"} -: ${pootle_logdir="%%POOTLELOGDIR%%"} - -if [ -n "${pootle_logdir}" ]; then - pootle_stdout="${pootle_logdir}/access.log" - pootle_stderr="${pootle_logdir}/error.log" -else - pootle_stdout="/dev/null" - pootle_stderr="/dev/null" -fi - -start_cmd="pootle_start_cmd" - -pootle_start_cmd () { - [ -z "${rc_quiet}" ] && echo "Starting ${name}." - /usr/sbin/daemon -p ${pidfile} -u ${pootle_user} ${command} ${pootle_flags} \ - >>${pootle_stdout} 2>>${pootle_stderr} -} - -run_rc_command "$1" |