ports/144384: nfsen rc script broken

geoffroy desvernay dgeo at centrale-marseille.fr
Mon Mar 1 10:00:09 UTC 2010


>Number:         144384
>Category:       ports
>Synopsis:       nfsen rc script broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 01 10:00:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     geoffroy desvernay
>Release:        7.1-RELEASE-p7
>Organization:
Ecole Centrale de Marseille
>Environment:
FreeBSD batavia.ec-m.fr 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #0: Fri Sep 25 00:14:09 CEST 2009     root at batavia.ec-m.fr:/usr/obj/usr/src/sys/BATAVIA  i386
>Description:
In the last versions of the port, the rc script seems badly broken on freebsd 7.x (and a bit stange looking anyway)
 - It seems written as a .sh (old-generation) rc script, but named 'nfsen'
 - The content of the file is duplicated

=> it never start the nfsend daemon
>How-To-Repeat:
install net-mgmt/nfsen

reboot the machine and see nothing...
>Fix:
Update the rc script

Patch attached with submission follows:

#! /bin/sh
#

# PROVIDE: nfsen
# REQUIRE: sshd
# KEYWORD: shutdown
#
nfsen_enable=${nfsen_enable-"NO"}
#nfsen_flags=${nfsen_flags-""}

. /etc/rc.subr

name="nfsen"
rcvar=`set_rcvar`
load_rc_config $name
command="/usr/local/bin/nfsen"
start_cmd="/usr/local/bin/nfsen start"
stop_cmd="/usr/local/bin/nfsen stop"
reload_cmd="/usr/local/bin/nfsen reconfig"
status_cmd="/usr/local/bin/nfsen status"

extra_commands="reload"

run_rc_command "$1"


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



More information about the freebsd-ports-bugs mailing list