From owner-freebsd-hackers Mon Sep 27 14:22:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 9184514FE9 for ; Mon, 27 Sep 1999 14:22:30 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id RAA06485 for ; Mon, 27 Sep 1999 17:21:23 -0400 (EDT) Date: Mon, 27 Sep 1999 17:07:03 -0400 (EDT) From: Zhihui Zhang To: freebsd-hackers@freebsd.org Subject: Register a RPC service with inetd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 27 Sep 1999, Alfred Perlstein wrote: > > On Mon, 27 Sep 1999, Zhihui Zhang wrote: > > > > > I have typed in the source code of rls (remote directory list) from the book > > "Power programming with RPC" and run it under FreeBSD successfully. > > > > But I can not get the rls server registered with inetd so that it can be > > started *automatically* during bootup. What I have done is as follows: > > ... > > Is portmap running? > I think so. On the server side: now4# rpcinfo -p localhost program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 3 udp 1023 mountd 100005 3 tcp 1023 mountd 100005 1 udp 1023 mountd 100005 1 tcp 1023 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100024 1 udp 1011 status 100024 1 tcp 1022 status 20000001 1 tcp 1024 rls <-- this is the service now4# On the client side: > newrpc/rls now4 / now4: RPC: Program not registered -Zhihui -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message