From owner-freebsd-questions Mon Apr 22 15:58:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pris.polaris.ca (pris.polaris.ca [199.247.156.218]) by hub.freebsd.org (Postfix) with SMTP id 7B28F37C9B4 for ; Mon, 22 Apr 2002 15:45:24 -0700 (PDT) Received: (qmail 49747 invoked by uid 85); 22 Apr 2002 22:45:12 -0000 Received: from Seamus.Venasse@polaris.ca by pris.polaris.ca by uid 82 with qmail-scanner-1.10 (uvscan: v4.1.60/v4197. spamassassin. Clear:0. Processed in 1.663975 secs); 22 Apr 2002 22:45:12 -0000 X-Qmail-Scanner-Mail-From: Seamus.Venasse@polaris.ca via pris.polaris.ca X-Qmail-Scanner: 1.10 (Clear:0. Processed in 1.663975 secs) Received: from unknown (HELO tornado) (216.126.123.139) by 0 with SMTP; 22 Apr 2002 22:45:10 -0000 From: "Seamus.Venasse" To: "'Mike Walsh'" , Subject: RE: starting PureFTP on startup Date: Mon, 22 Apr 2002 15:44:57 -0700 Message-ID: <00bc01c1ea4f$54005b30$8b7b7ed8@tornado> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Status: No, hits=-1.1 required=5.0 tests=IN_REP_TO,AWL version=2.11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Mike Walsh > Sent: April 22, 2002 3:14 PM > To: questions@FreeBSD.org > Subject: starting PureFTP on startup > > > hey there, > > i have PureFTP installed on my FreeBSD 4.4 machine. its installed at: > > /usr/local/sbin/pure-ftpd > > i'd like to automatically run the server when the system > boots, but i don't know how to do that. > > can anyone tell me how to do this?? I created the following startup script in my /usr/local/etc/rc.d directory. Hope this helps! #!/bin/sh case "$1" in start) /usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf > /dev/null && echo -n ' pure-ftpd' ;; stop) killall pure-ftpd ;; restart) $0 stop $0 start esac Seamus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message