[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

RE: macosx 10.2.1, getservbyname: conserver: Undefined error: 0

Morris, Adam AMorris@providence.org
Tue, 5 Nov 2002 10:30:23 -0800 (PST)


Greetings Stephen,
	You need to add conserver to your /etc/services file (or wherever
MacOSX keeps it...)  That error means that it can't find the port number to
use for the conserver service.
	I hope that this helps,
		Adam

-----Original Message-----
From: Stephen Bannasch [mailto:stephen@concord.org]
Sent: Tuesday, November 05, 2002 10:26 AM
To: users@conserver.com
Subject: macosx 10.2.1, getservbyname: conserver: Undefined error: 0



I installed conserver 7.2.4 on macosx 10.2.1.  After installation I had to
add /usr/local/sbin to my PATH and to the conserver.rc script.

My goal is to communicate to an external serial device operating at 9600
bps, one stop, no parity, no handshaking.  The device is connected through
the USB serial port at /dev/tty.USA19QW11P1.

I am getting the following error when starting up:

  conserver: getservbyname: conserver: Undefined error: 0

I have included below the output from conserver -V, and the files conserver
.cf, conserver.passwd, and conserver.rc.

Thanks for any help!

------------------------------------------------------------------------

[bash stephen:/usr/local/etc]conserver -V
conserver: conserver.com version 7.2.4
conserver: default access type `r'
conserver: default escape sequence `^Ec'
conserver: configuration in `/usr/local/etc/conserver.cf'
conserver: password in `/usr/local/etc/conserver.passwd'
conserver: logfile is `/var/log/conserver'
conserver: pidfile is `/var/run/conserver.pid'
conserver: limited to 16 members per group
conserver: getservbyname: conserver: Undefined error: 0
conserver: secondary channel base port 0 (referenced as `0')
conserver: options: none
conserver: built with `./configure '

[bash stephen:/usr/local/etc]cat conserver.cf
#
# conserver.cf
#
routera:/dev/tty.USA19QW11P1.1:9600p:&:

[bash stephen:/usr/local/etc]cat conserver.passwd
#
# conserver.passwd
#
stephen:*passwd*:any

[bash stephen:/usr/local/etc]cat conserver.rc
#!/bin/sh
#
# Startup for conserver
#

PATH=/usr/bin:/usr/local/bin:/usr/local/sbin

case "$1" in
        'start')
                echo "Starting console server daemon"
                conserver -d
                ;;

        'stop')
                master=`ps -ef | grep conserver | awk '$3 == "1"{print $2}'`
                [ "$master" ] && kill -TERM $master
                ;;

        *)
                echo "Usage: $0 { start | stop }"
                ;;

esac
exit 0

-- 

-s
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
 
****************************************************************************
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.