Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 15:44:57 -0700
From:      "Seamus.Venasse" <Seamus.Venasse@polaris.ca>
To:        "'Mike Walsh'" <mike.walsh@timestar.com>, <questions@FreeBSD.org>
Subject:   RE: starting PureFTP on startup
Message-ID:  <00bc01c1ea4f$54005b30$8b7b7ed8@tornado>
In-Reply-To: <DMEOKEJFJCJGFEEIJODCOEIPCAAA.mike.walsh@timestar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bc01c1ea4f$54005b30$8b7b7ed8>