Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2003 14:15:38 -0500
From:      Paul Chvostek <paul@it.ca>
To:        Phillip Smith <phillip@3bags.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: portsentry
Message-ID:  <20030129141538.A51627@mail.it.ca>
In-Reply-To: <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia>; from phillip@3bags.com on Wed, Jan 29, 2003 at 02:03:03PM -0500
References:  <006c01c2c7c9$0c9d3b20$aeb423cf@3bagsmedia>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Phillip.

On Wed, Jan 29, 2003 at 02:03:03PM -0500, Phillip Smith wrote:
>
> What's the best way to start portsentry on reboot?

There doesn't seem to be one build by the port, so I wrote a
/usr/local/etc/rc.d/portsentry.sh that looks someting like this:

#!/bin/sh
case "$1" in
start)
	[ -x /usr/local/bin/portsentry ] && /usr/local/bin/portsentry -tcp
	echo -n " portsentry"
	;;
stop)
	killall portsentry
	;;
esac


I've seen others punt and simply add "/usr/local/bin/portsentry -tcp" to
their /etc/rc.local.  It's not as SysV-compliant, but it works.

-- 
  Paul Chvostek                                             <paul@it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/


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?20030129141538.A51627>