From owner-freebsd-questions@FreeBSD.ORG Sat Jan 27 23:34:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1850816A400 for ; Sat, 27 Jan 2007 23:34:39 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 8A22D13C4A6 for ; Sat, 27 Jan 2007 23:34:38 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l0RNYJdO002672; Sat, 27 Jan 2007 17:34:19 -0600 (CST) Message-Id: <6.0.0.22.2.20070127173326.024d32f0@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 27 Jan 2007 17:34:11 -0600 To: Peter Matulis , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <200701271805.47735.pmatulis@sympatico.ca> References: <200701271555.37416.pmatulis@sympatico.ca> <6.0.0.22.2.20070127153616.02483ec0@mail.computinginnovations.com> <200701271805.47735.pmatulis@sympatico.ca> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: cannot launch vsftpd at system startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 23:34:39 -0000 change the line: . "%%RC_SUBR%%" to: . "/etc/rc.subr" -Derek At 05:05 PM 1/27/2007, Peter Matulis wrote: >Le Samedi 27 Janvier 2007 16:36, Derek Ragona a =E9crit : > > add set -x to the startup script and debug where that error message > > is coming from. > > > > -Derek > > > > At 02:55 PM 1/27/2007, Peter Matulis wrote: > > >Hi gang, > > > > > >I have read quite a few articles on how to start vsftpd at system > > > bootup but nothing seems to work on my new and updated 6.2 STABLE > > > machine. > > > > > >I have copied /usr/ports/ftp/vsftpd/files/vsftpd.sh.in > > >to /usr/local/etc/rc.d/vsftpd.sh and it is executable. > > > > > >In /etc/rc.conf I am placing: > > > > > >vsftpd_enable=3D"YES" > > > > > >and in vsftpd.conf: > > > > > >listen=3DYES > > >background=3DYES > > > > > >I can't see the error when my machine boots but when I attempt to > > > run the rc.d script manually I get: > > > > > >.: Can't open %%RC_SUBR%%: No such file or directory > > > > > >I can start the daemon at the command line: > > > > > >/usr/local/libexec/vsftpd & > > > > > >I installed the port sysutils/rc_subr thinking it may help but it > > > does not. I also reinstalled vsftpd with the make option RC_NG but > > > it doesn't seem to do anything (isn't it supposed to install the > > > rc.d script?). > >The shell tries to parse this line: > >. "%%RC_SUBR%%" > >I have no idea what it is trying to source. > >Here is the entire script: >-------------------------------------------- > >#!/bin/sh ># ># $FreeBSD: ports/ftp/vsftpd/files/vsftpd.sh.in,v 1.7 2006/02/20 >20:47:01 dougb Exp $ ># > ># PROVIDE: vsftpd ># REQUIRE: DAEMON > ># Add the following line to /etc/rc.conf to enable `vsftpd': ># ># vsftpd_enable=3D"YES" ># vsftpd_flags=3D"/some/path/conf.file" # Not required ># > >. "%%RC_SUBR%%" > >name=3D"vsftpd" >rcvar=3D`set_rcvar` > >load_rc_config "$name" >: ${vsftpd_enable:=3D"NO"} >: ${vsftpd_flags:=3D""} > >command=3D"%%PREFIX%%/libexec/$name" >required_files=3D"%%PREFIX%%/etc/$name.conf" >start_precmd=3D"vsftpd_check" > >vsftpd_check() >{ > if grep -q "^ftp[ ]" /etc/inetd.conf ${required_files} > then > err 1 "ftp is already activated in /etc/inetd.conf" > fi > if ! egrep -q -i -E "^listen.*=3D.*YES$" ${required_files} > then > err 1 "vsftpd script need "listen=3DYES" on config file" > fi > if ! egrep -q -i -E "^background.*=3D.*YES$" ${required_files} > then > err 1 "vsftpd script need "background=3DYES" on config >file" > fi >} > >run_rc_command "$1" >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.