Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2009 14:42:57 GMT
From:      "Vasiliy P. Melnik" <basil@vpm.net.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/134045: rc.d script for transmission-daemon
Message-ID:  <200904271442.n3REgvAO010823@www.freebsd.org>
Resent-Message-ID: <200904271450.n3REo1Bi003709@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         134045
>Category:       ports
>Synopsis:       rc.d script for transmission-daemon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 27 14:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Vasiliy P. Melnik
>Release:        FreeBSD 7.1-RELEASE-p4
>Organization:
NA
>Environment:
FreeBSD luckygrain.imc-ua.net 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 29 00:35:28 EET 2009     root@luckygrain.imc-ua.net:/usr/obj/usr/src/sys/luckygrain  i386
>Description:
I think, rc.d-script it would be not bad idea for transmission-daemon
>How-To-Repeat:

>Fix:
#!/bin/sh
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run transmission:
#
# transmission_enable="YES"

. /etc/rc.subr

name="transmission"
rcvar=`set_rcvar`

load_rc_config ${name}

command=/usr/local/bin/$name-daemon

: ${transmission_enable="NO"}
: ${transmission_user="nobody"}
: ${transmission_args="--no-auth --allowed "*.*.*.*" "}
: ${transmission_dir="/usr/local/transmission"}
: ${transmission_config_dir="${transmission_dir}/.config"}

command_args="-w ${transmission_dir} -g ${transmission_config_dir} ${transmission_args}"

run_rc_command "$1"


Patch attached with submission follows:

#!/bin/sh
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run transmission:
#
# transmission_enable="YES"

. /etc/rc.subr

name="transmission"
rcvar=`set_rcvar`

load_rc_config ${name}

command=/usr/local/bin/$name-daemon

: ${transmission_enable="NO"}
: ${transmission_user="nobody"}
: ${transmission_args="--no-auth --allowed "*.*.*.*" "}
: ${transmission_dir="/usr/local/transmission"}
: ${transmission_config_dir="${transmission_dir}/.config"}

command_args="-w ${transmission_dir} -g ${transmission_config_dir}
${transmission_args}"

run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904271442.n3REgvAO010823>