Subject: Re: ypserv prints: svc_run returned
To: C Kane <>
From: David Brownlee <>
List: tech-userlevel
Date: 02/17/1999 22:01:48
	svc_run() calls warn(), which outputs to stderr.
	Unfortunately if running in the background stderr is not useful
	for ypserv.

	To get ypserv to run in the foreground you should be able to
	recompile with RPC_SVC_FG defined. Actually you could define
	DEBUG which will enable RPC_SVC_FG plus other cruft.

	Probably the best way to debug this would be to recompile
	with RPC_SVC_FG defined, this should get you some useful
	output from the warn() line in src/lib/libc/rpc/svc_run.c

	Hmm.. its a little lame that ypserv does not have a -f option
	to run in the foreground. Have just added one to -current.
	Depending on how old your -current is, you may be able to
	download the new usr.sbin/ypserv/ypserv/ypserv.c (you want
	revision 1.9). Your safest bet is just to use RPC_SVC_FG.

	Then let us live and love so that people will say;
	     "The devil as well as god... is an englishman."

On Wed, 17 Feb 1999, C Kane wrote:

> Hello.
> I am running NetBSD-1.3I/i386 (from early January) with ypserv.
> ypserv occasionally exits, with this message:
>         svc_run returned
> Typically ypserv has been running for three to seven days before
> this happens.
> svc_run should return only when there is a problem with select(),
> and there should be a message "svc_run: - select failed", but I
> do not see this message on the screen or in dmesg or in the
> messages file.
> Has anyone seens this before?
> Can anyone suggest how I might go about debugging this problem?
> Is there any way to run ypserv in the foreground so that it can
> automatically be restarted when it dies?
> I do not think I am on this list, please send replies to me.
> Thanks for any response at all.
> -- Chuck