diff options
author | grant <grant@pkgsrc.org> | 2003-10-01 01:15:44 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-10-01 01:15:44 +0000 |
commit | 38fd9dcbc921979a1c52499a1b84c1e4eb73d9e5 (patch) | |
tree | 59289af4f333ce4f17cb258d6b9794b9bbdf2191 /net/rinetd/files | |
parent | 8df6fa28725e26e11bf7a15cf45af0c412de69a1 (diff) | |
download | pkgsrc-38fd9dcbc921979a1c52499a1b84c1e4eb73d9e5.tar.gz |
Initial import of rinetd-0.62 into The NetBSD Packages Collection.
Redirects TCP connections from one IP address and port to another.
rinetd is a single-process server which handles any number of
connections address/port pairs. Since rinetd runs as a single
process using nonblocking I/O, it is able to redirect a large
number of connections without a severe impact on the machine.
Diffstat (limited to 'net/rinetd/files')
-rw-r--r-- | net/rinetd/files/rinetd.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/rinetd/files/rinetd.sh b/net/rinetd/files/rinetd.sh new file mode 100644 index 00000000000..bd2f35398b5 --- /dev/null +++ b/net/rinetd/files/rinetd.sh @@ -0,0 +1,19 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: rinetd.sh,v 1.1.1.1 2003/10/01 01:15:44 grant Exp $ +# +# PROVIDE: rinetd +# REQUIRE: DAEMON +# KEYWORD: shutdown +# + +. /etc/rc.subr + +name="rinetd" +rcvar=${name} +command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="@PKG_SYSCONFDIR@/rinetd.conf" + +load_rc_config $name +run_rc_command "$1" |