pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43732: devel/subversion-base doesn't provide an rc.d script
>Number: 43732
>Category: pkg
>Synopsis: devel/subversion-base doesn't provide an rc.d script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Aug 10 02:00:00 +0000 2010
>Originator: Nathan Arthur
>Release: 5.0
>Organization:
>Environment:
\NetBSD home.rainskit.com 5.0.2_PATCH NetBSD 5.0.2_PATCH (TRUIST) #2: Tue Jul
13 03:51:44 EDT 2010
root%home.rainskit.com@localhost:/usr/src/sys/arch/i386/compile/TRUIST i386
>Description:
The devel/subversion-base package does not supply an rc.d script, even though
subversion is typically run as a server-side daemon. This makes it difficult
to actually manage the server without writing custom scripts to do so.
>How-To-Repeat:
Install devel/subversion-base
>Fix:
Suggested rc.d script (rc.d/svnserve):
#!/bin/sh
# PROVIDE: svnserve
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="svnserve"
rcvar=${name}
command="/usr/pkg/bin/${name}"
svnserve_user="svn"
pidfile="/var/run/${name}.pid"
start_precmd="${name}_prestart"
svnserve_prestart()
{
rc_flags="-d --pid-file=${pidfile} ${rc_flags}"
}
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index