pew@grieg.Eng.Sun.COM (John Pew) (04/02/91)
I have a daemon that I want the inetd to start up automatically. The daemon was created using rpcgen. My problem is that when I put an entry in the inetd.conf file like this: testd/1 stream rpc/tcp wait root /usr/etc/rpc.testd rpc.testd With a corresponding entry in /etc/rpc: testd 100099 I get the following error message: inetd[124]: testd/rpc/tcp: unknown service However, if I change the entry in inetd.conf to: 100099/1 stream rpc/tcp wait root /usr/etc/rpc.testd rpc.testd everything works fine. What am I doing wrong? I am running on a Sun workstation running SunOS 4.1.1. Here is the .x file I run rpcgen on: program TESTPROG { version TESTVERS { int STARTTEST(int) = 1; int STOPTEST(int) = 2; } = 1; } = 100099; I use rpcgen as follows: rpcgen -I test.x What I normally do is send a HUP signal to inetd so that it re-reads the inetd.conf file. I have also tried rebooting. No luck. Any help would be appreciated. John Pew pew@sun.com