From eamon.harbison@cp.net Thu Dec 6 08:31:23 2001 Received: from puma.dub0.ie.cp.net (gw.cpth.ie [62.17.137.250]) by underdog.stansell.org (8.12.1/8.12.1) with ESMTP id fB6GVMkC029294 for ; Thu, 6 Dec 2001 08:31:23 -0800 (PST) Received: from LENINA (10.40.2.0) by puma.dub0.ie.cp.net (6.0.036) id 3BFA42710000BE91 for users@conserver.com; Thu, 6 Dec 2001 16:31:55 +0000 From: =?iso-8859-1?Q?=C9amon_Harbison?= To: Subject: conserver (1046): open: /dev/ttyC0: No such device Date: Thu, 6 Dec 2001 16:30:37 -0000 Message-ID: <005f01c17e73$56194500$0002280a@LENINA> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0060_01C17E73.56194500" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3311 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: users-admin@conserver.com Errors-To: users-admin@conserver.com X-BeenThere: users@conserver.com X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Conserver Users List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0060_01C17E73.56194500 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I am running Conserver on a RedHat 7.2 box with a Cyclades Ze and 64 ports. But I get the following error on starup of conserver -d: conserver (1046): open: /dev/ttyC0: No such device The conserver.cf file contains only the one entry for that port: LOGDIR=/var/console # flash:/dev/ttyC0:9600p:&.log: %% # trust: localhost allow: 127.0.0.1 There are 64 ports ranging from ttyC0 to ttyC63. Is there something I am missing here or is it the Cyclades stuff that isn't working?? Cheers, Eamon. ------=_NextPart_000_0060_01C17E73.56194500 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
I am = running=20 Conserver on a RedHat 7.2 box with a Cyclades Ze and 64=20 ports.
But I = get the=20 following error on starup of conserver -d:
 
conserver (1046):=20 open: /dev/ttyC0: No such device
 
The = conserver.cf=20 file contains only the one entry for that port:
LOGDIR=3D/var/console
#
flash:/dev/ttyC0= :9600p:&.log:
%%
#
trust:=20 localhost
allow: = 127.0.0.1
 
There = are 64 ports=20 ranging from ttyC0 to ttyC63.  Is there something I am missing here = or is=20 it the Cyclades stuff that isn't working??
 
Cheers,
Eamon.
------=_NextPart_000_0060_01C17E73.56194500-- From bryan@stansell.org Sat Dec 8 16:40:31 2001 Received: from underdog.stansell.org (localhost [127.0.0.1]) by underdog.stansell.org (8.12.1/8.12.1) with ESMTP id fB90eVCb010419 for ; Sat, 8 Dec 2001 16:40:31 -0800 (PST) Received: (from bryan@localhost) by underdog.stansell.org (8.12.1/8.12.1/Submit) id fB90eVJ0010418 for users@conserver.com; Sat, 8 Dec 2001 16:40:31 -0800 (PST) Date: Sat, 8 Dec 2001 16:40:31 -0800 From: Bryan Stansell To: users@conserver.com Subject: Re: conserver (1046): open: /dev/ttyC0: No such device Message-ID: <20011208164031.B8198@underdog.stansell.org> References: <005f01c17e73$56194500$0002280a@LENINA> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <005f01c17e73$56194500$0002280a@LENINA>; from eamon.harbison@cp.net on Thu, Dec 06, 2001 at 04:30:37PM -0000 Sender: users-admin@conserver.com Errors-To: users-admin@conserver.com X-BeenThere: users@conserver.com X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Conserver Users List-Unsubscribe: , List-Archive: Well, I'm not sure what the problem might be, but here's a couple of suggestions. First, try accessing the ports with minicom or some other serial port access program (kermit, tip, etc). If those fail as well, you've got a generic access problem and you should look into the Cyclades bits. One possible explanation is that you'd need to bring the carrier detect line high on the ports before accessing them is possible. I seem to remember seeing that as the default option with a digi terminal server - and it was a selectable option (using the digi tools you could turn off that requirement or access a different device name or something like that). Not sure how much help that is, but if you haven't gotten anywhere yet, maybe one of those ideas will help diagnose the problem. As for the conserver setup, things look configured correctly. Bryan On Thu, Dec 06, 2001 at 04:30:37PM -0000, Éamon Harbison wrote: > I am running Conserver on a RedHat 7.2 box with a Cyclades Ze and 64 > ports. > But I get the following error on starup of conserver -d: > > conserver (1046): open: /dev/ttyC0: No such device > > The conserver.cf file contains only the one entry for that port: > LOGDIR=/var/console > # > flash:/dev/ttyC0:9600p:&.log: > %% > # > trust: localhost > allow: 127.0.0.1 > > There are 64 ports ranging from ttyC0 to ttyC63. Is there something I > am missing here or is it the Cyclades stuff that isn't working?? > > Cheers, > Eamon. From iainr@dcs.ed.ac.uk Mon Dec 10 03:40:41 2001 Received: from muck.dcs.ed.ac.uk (muck.dcs.ed.ac.uk [129.215.216.15]) by underdog.stansell.org (8.12.1/8.12.1) with ESMTP id fBABedCb005889 for ; Mon, 10 Dec 2001 03:40:40 -0800 (PST) Received: from mince.dcs.ed.ac.uk (root@mince.dcs.ed.ac.uk [129.215.58.141]) by muck.dcs.ed.ac.uk with ESMTP id LAA10787 for ; Mon, 10 Dec 2001 11:40:36 GMT Received: from dcs.ed.ac.uk (IDENT:iainr@localhost [127.0.0.1]) by mince.dcs.ed.ac.uk (8.11.6/8.11.6) with ESMTP id fBABeZ217745 for ; Mon, 10 Dec 2001 11:40:36 GMT Message-ID: <3C149F32.4080600@dcs.ed.ac.uk> Date: Mon, 10 Dec 2001 11:40:34 +0000 From: Iain Rae User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011129 X-Accept-Language: en-us MIME-Version: 1.0 To: users@conserver.com Subject: Re: conserver (1046): open: /dev/ttyC0: No such device References: <005f01c17e73$56194500$0002280a@LENINA> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: users-admin@conserver.com Errors-To: users-admin@conserver.com X-BeenThere: users@conserver.com X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Conserver Users List-Unsubscribe: , List-Archive: Éamon Harbison wrote: > I am running Conserver on a RedHat 7.2 box with a Cyclades Ze and 64 > ports. > > But I get the following error on starup of conserver -d: > > > > conserver (1046): open: /dev/ttyC0: No such device > > > we use the Y series boards and the only time I've seen this was when either the device wasn't there or the driver for the card wasn't compiled into the kernel. I don't think it's a conserver problem. > The conserver.cf file contains only the one entry for that port: > > LOGDIR=/var/console > # > flash:/dev/ttyC0:9600p:&.log: > %% > # > trust: localhost > > allow: 127.0.0.1 > > > > There are 64 ports ranging from ttyC0 to ttyC63. Is there something I > am missing here or is it the Cyclades stuff that isn't working?? > > > > Cheers, > > Eamon. > From glenn.grimes@eircom.net Fri Dec 14 19:18:30 2001 From: glenn.grimes@eircom.net (Glenn Grimes) Date: Fri, 14 Dec 2001 19:18:30 -0000 Subject: reconnecting to servers Message-ID: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME> Hi all, I'm running conserver-7.1.3 on freebsd 4.4 My question refers to Andreas Wrede's October post "nailing-up serial connections" re: conserver automatically connecting to servers after the connection has been dropped. Bryan mentioned that he had removed this functionality, "Conserver used to re-open downed lines automatically. I recently changed it so that it wouldn't do that. The reason? In most cases it caused conserver to respawn processes and run in a fairly tight loop, causing the load to rise, etc." I was wondering if anyone has reverted to the automatic reconnection and if so do they have a patch file that I could use as I would like/need conserver to log what is going on during the boot process etc. Any help greatly appreciated. rgds Glenn From bryan@conserver.com Sat Dec 15 09:16:09 2001 From: bryan@conserver.com (Bryan Stansell) Date: Sat, 15 Dec 2001 01:16:09 -0800 Subject: reconnecting to servers In-Reply-To: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME>; from glenn.grimes@eircom.net on Fri, Dec 14, 2001 at 07:18:30PM -0000 References: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME> Message-ID: <20011215011609.I25044@underdog.stansell.org> On Fri, Dec 14, 2001 at 07:18:30PM -0000, Glenn Grimes wrote: > I was wondering if anyone has reverted to the automatic reconnection and if > so do they have a patch file that I could use as I would like/need conserver > to log what is going on during the boot process etc. I'm hearing more and more about this issue. I'd really like to find a nice way for conserver to try and reopen the lines once or maybe twice and then fallback to shutting things down, but I haven't put enough thought into the code. For those that would like to get the old behavior back (well, something close to the old behavior), look at line 799 of conserver/group.c. You'll see: /*ConsInit(pCEServing, &rinit, 0); */ ConsDown(pCEServing, &rinit); Just comment out the ConsDown and uncomment the ConsInit... ConsInit(pCEServing, &rinit, 0); /*ConsDown(pCEServing, &rinit);*/ I'm beginning to believe that the ConsInit is the right thing to do and that the number of folks experiencing the random high load/respawn problem is very small compared to the number of folks that would benefit from automatically reconnecting on a disconnect. Bryan From jimmy@nccom.com Sat Dec 15 20:05:45 2001 From: jimmy@nccom.com (Jim Gottlieb) Date: Sat, 15 Dec 2001 12:05:45 -0800 Subject: reconnecting to servers In-Reply-To: <20011215011609.I25044@underdog.stansell.org>; from bryan@conserver.com on Sat, Dec 15, 2001 at 01:16:09AM -0800 References: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME> <20011215011609.I25044@underdog.stansell.org> Message-ID: <20011215120545.A5150@nccom.com> On 2001-12-15 at 01:16, Bryan Stansell (bryan@conserver.com) wrote: > I'm beginning to believe that the ConsInit is the right thing to do and > that the number of folks experiencing the random high load/respawn > problem is very small compared to the number of folks that would > benefit from automatically reconnecting on a disconnect. Probably true. How about having it try to reconnect once a minute (sleep 60 between retries). That way, it will try to reconnect, but won't get into a tight resource-hogging loop. From bryan@conserver.com Sat Dec 15 20:43:43 2001 From: bryan@conserver.com (Bryan Stansell) Date: Sat, 15 Dec 2001 12:43:43 -0800 Subject: reconnecting to servers In-Reply-To: <20011215120545.A5150@nccom.com>; from jimmy@nccom.com on Sat, Dec 15, 2001 at 12:05:45PM -0800 References: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME> <20011215011609.I25044@underdog.stansell.org> <20011215120545.A5150@nccom.com> Message-ID: <20011215124343.K25044@underdog.stansell.org> The problem with using a sleep() in the code is that the process does just that - it sleeps. Each process is managing 16 consoles (by default) and if it sleeps, all activity for those 16 consoles and anyone connected to any of those consoles stops for the length of the sleep(). So, just putting a sleep in there doesn't work well. There is a timer that goes off every minute that's used to produce the timestamps in the logfiles. It should be possible to use that mechanism, but, again, I haven't put much thought into the impact of inserting code there either. So, yep, should be possible. Hmm...maybe it would be as simple as putting it in the timer loop. I guess the only other bit I'd like to see is a counter of auto-retries and if that hits two or three, it stops trying to reconnect. But, that should be easy as well. Hmm...I'm feeling inspired... :-) Bryan On Sat, Dec 15, 2001 at 12:05:45PM -0800, Jim Gottlieb wrote: > On 2001-12-15 at 01:16, Bryan Stansell (bryan@conserver.com) wrote: > > > I'm beginning to believe that the ConsInit is the right thing to do and > > that the number of folks experiencing the random high load/respawn > > problem is very small compared to the number of folks that would > > benefit from automatically reconnecting on a disconnect. > > Probably true. How about having it try to reconnect once a minute > (sleep 60 between retries). That way, it will try to reconnect, but > won't get into a tight resource-hogging loop. > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users From doug@gblx.net Sun Dec 16 01:32:18 2001 From: doug@gblx.net (Doug Hughes) Date: Sat, 15 Dec 2001 18:32:18 -0700 (MST) Subject: reconnecting to servers In-Reply-To: <20011215124343.K25044@underdog.stansell.org> Message-ID: On Sat, 15 Dec 2001, Bryan Stansell wrote: > The problem with using a sleep() in the code is that the process does > just that - it sleeps. Each process is managing 16 consoles (by > default) and if it sleeps, all activity for those 16 consoles and > anyone connected to any of those consoles stops for the length of the > sleep(). So, just putting a sleep in there doesn't work well. There > is a timer that goes off every minute that's used to produce the > timestamps in the logfiles. It should be possible to use that > mechanism, but, again, I haven't put much thought into the impact of > inserting code there either. > > So, yep, should be possible. Hmm...maybe it would be as simple as > putting it in the timer loop. I guess the only other bit I'd like to > see is a counter of auto-retries and if that hits two or three, it > stops trying to reconnect. But, that should be easy as well. > Hmm...I'm feeling inspired... :-) > yeah, like ntp. it has an alarm every so often and goes through an array of pointers. null pointers ignored, pointers pointing to something are checked. You could do the same thing with stuck consoles, add them to a linked list or array or something like that that gets checked every so often. Back to lurking. ;) From bryan@conserver.com Mon Dec 17 07:24:35 2001 From: bryan@conserver.com (Bryan Stansell) Date: Sun, 16 Dec 2001 23:24:35 -0800 Subject: 7.1.4-beta patch In-Reply-To: <20011215124343.K25044@underdog.stansell.org>; from bryan@conserver.com on Sat, Dec 15, 2001 at 12:43:43PM -0800 References: <01e601c184d4$1d5dbc20$47c1869f@GLENNHOME> <20011215011609.I25044@underdog.stansell.org> <20011215120545.A5150@nccom.com> <20011215124343.K25044@underdog.stansell.org> Message-ID: <20011216232435.L25044@underdog.stansell.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="NDin8bjvE/0mNLFQ" Content-Disposition: inline --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Well folks, I've attached a patch that will give you the 'auto-reconnect' feature that was discussed here. It will try an initial reconnect on a failure, and then continue to retry every minute or so. It all seems to work in my testing, but I'd love to know of any successes or failures for anyone out there that uses it. There were certain cases where consoles were 'forced down'...those cases still exist. For the other, "non-standard" cases, this new code kicks in. If you come across a 'forced down' case and it should really be an auto-reconnect case, let me know. Bryan --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Description: 7.1.4-beta.patch Content-Disposition: attachment; filename="7.1.4-beta.patch" diff -cr conserver-7.1.3/CHANGES conserver-7.1.4-beta/CHANGES *** conserver-7.1.3/CHANGES Tue Oct 16 21:32:43 2001 --- conserver-7.1.4-beta/CHANGES Sun Dec 16 23:12:33 2001 *************** *** 1,6 **** --- 1,10 ---- CHANGES ======= + version 7.1.4-beta (Dec 16, 2001): + - Automatic reconnection of consoles on failures, retried every + minute + version 7.1.3 (Oct 16, 2001): - NetBSD 1.5 termios bug/compatibility - patch by Andreas Wrede *************** *** 247,251 **** and enhancements of various types were applied. # ! # $Id: CHANGES,v 1.50 2001-10-16 21:32:33-07 bryan Exp $ # --- 251,255 ---- and enhancements of various types were applied. # ! # $Id: CHANGES,v 1.50 2001-10-16 21:32:33-07 bryan Exp bryan $ # Common subdirectories: conserver-7.1.3/autologin and conserver-7.1.4-beta/autologin Common subdirectories: conserver-7.1.3/conserver and conserver-7.1.4-beta/conserver Common subdirectories: conserver-7.1.3/conserver.cf and conserver-7.1.4-beta/conserver.cf diff -cr conserver-7.1.3/conserver.html conserver-7.1.4-beta/conserver.html *** conserver-7.1.3/conserver.html Tue Oct 16 21:33:13 2001 --- conserver-7.1.4-beta/conserver.html Sun Dec 16 23:12:42 2001 *************** *** 167,176 ****

The current version, released on RELEASE_DATE, is ! 7.1.3.tar.gz. You can get it via FTP ! or HTTP. See the CHANGES file for information on the latest updates.

--- 167,176 ----

The current version, released on RELEASE_DATE, is ! 7.1.4-beta.tar.gz. You can get it via FTP ! or HTTP. See the CHANGES file for information on the latest updates.

Common subdirectories: conserver-7.1.3/console and conserver-7.1.4-beta/console Common subdirectories: conserver-7.1.3/contrib and conserver-7.1.4-beta/contrib diff -cr conserver-7.1.3/conserver/consent.c conserver-7.1.4-beta/conserver/consent.c *** conserver-7.1.3/conserver/consent.c Tue Oct 16 12:03:05 2001 --- conserver-7.1.4-beta/conserver/consent.c Sun Dec 16 22:59:03 2001 *************** *** 1,5 **** /* ! * $Id: consent.c,v 5.71 2001-10-16 12:02:30-07 bryan Exp $ * * Copyright conserver.com, 2000-2001 * --- 1,5 ---- /* ! * $Id: consent.c,v 5.72 2001-12-16 22:58:59-08 bryan Exp $ * * Copyright conserver.com, 2000-2001 * *************** *** 571,576 **** --- 571,577 ---- } pCE->fup = 0; pCE->nolog = 0; + pCE->autoReUp = 0; } int *************** *** 642,647 **** --- 643,649 ---- } } + pCE->autoReUp = 0; pCE->fronly = 0; pCE->nolog = 0; (void)strcpy(pCE->acline, pCE->server); diff -cr conserver-7.1.3/conserver/consent.h conserver-7.1.4-beta/conserver/consent.h *** conserver-7.1.3/conserver/consent.h Mon Jul 23 00:28:14 2001 --- conserver-7.1.4-beta/conserver/consent.h Sun Dec 16 22:59:04 2001 *************** *** 1,5 **** /* ! * $Id: consent.h,v 5.22 2001-07-23 00:28:00-07 bryan Exp $ * * Copyright conserver.com, 2000-2001 * --- 1,5 ---- /* ! * $Id: consent.h,v 5.23 2001-12-16 22:58:59-08 bryan Exp $ * * Copyright conserver.com, 2000-2001 * *************** *** 71,76 **** --- 71,77 ---- char networkConsoleHost[MAXSERVLEN]; int networkConsolePort; int telnetState; + int autoReUp; /* used if virtual console */ char acslave[MAXDEVLEN]; /* pseudo-device slave side */ diff -cr conserver-7.1.3/conserver/group.c conserver-7.1.4-beta/conserver/group.c *** conserver-7.1.3/conserver/group.c Tue Oct 16 21:29:05 2001 --- conserver-7.1.4-beta/conserver/group.c Sun Dec 16 22:59:31 2001 *************** *** 1,5 **** /* ! * $Id: group.c,v 5.140 2001-10-16 21:29:01-07 bryan Exp $ * * Copyright conserver.com, 2000-2001 * --- 1,5 ---- /* ! * $Id: group.c,v 5.141 2001-12-16 22:59:06-08 bryan Exp $ * * Copyright conserver.com, 2000-2001 * *************** *** 189,195 **** } static void ! ReUp(pGE, prinit) GRPENT *pGE; fd_set *prinit; { --- 189,195 ---- } static void ! ReUp(pGE, automatic, prinit) GRPENT *pGE; fd_set *prinit; { *************** *** 201,211 **** } for (i = 0, pCE = pGE->pCElist; i < pGE->imembers; ++i, ++pCE) { ! if (pCE->fup) { continue; ! } ! if (fNoinit) ! continue; ConsInit(pCE, prinit, 1); } } --- 201,211 ---- } for (i = 0, pCE = pGE->pCElist; i < pGE->imembers; ++i, ++pCE) { ! if (pCE->fup || fNoinit || (automatic && !pCE->autoReUp)) continue; ! if (automatic) ! Info("%s: automatic reinitialization [%s]", pCE->server, ! strtime(NULL)); ConsInit(pCE, prinit, 1); } } *************** *** 438,444 **** pCE->pCLwr = (CONSCLIENT *) 0; } ! ConsDown(pCE, prinit); } } } --- 438,451 ---- pCE->pCLwr = (CONSCLIENT *) 0; } ! /* Try an initial reconnect */ ! Info("%s: automatic reinitialization [%s]", pCE->server, ! strtime(NULL)); ! ConsInit(pCE, prinit, 0); ! ! /* If we didn't succeed, try again later */ ! if (!pCE->fup) ! pCE->autoReUp = 1; } } } *************** *** 681,686 **** --- 688,694 ---- pCE[iConsole].pCLon = pCE[iConsole].pCLwr = (CONSCLIENT *) 0; pCE[iConsole].fdlog = (CONSFILE *) 0; pCE[iConsole].fdtty = -1; + pCE[iConsole].autoReUp = 0; } sprintf(CECtl.server, "ctl_%d", pGE->port); CECtl.inamelen = strlen(CECtl.server); /* bogus, of course */ *************** *** 754,764 **** } if (fSawReUp) { fSawReUp = 0; ! ReUp(pGE, &rinit); } if (fSawMark) { fSawMark = 0; Mark(pGE, &rinit); } rmask = rinit; --- 762,773 ---- } if (fSawReUp) { fSawReUp = 0; ! ReUp(pGE, 0, &rinit); } if (fSawMark) { fSawMark = 0; Mark(pGE, &rinit); + ReUp(pGE, 1, &rinit); } rmask = rinit; *************** *** 796,804 **** pCEServing->pCLwr = (CONSCLIENT *) 0; } ! /*ConsInit(pCEServing, &rinit, 0); */ ! ConsDown(pCEServing, &rinit); continue; } Debug("Read %d bytes from fd %d", nr, pCEServing->fdtty); --- 805,819 ---- pCEServing->pCLwr = (CONSCLIENT *) 0; } ! /* Try an initial reconnect */ ! Info("%s: automatic reinitialization [%s]", ! pCEServing->server, strtime(NULL)); ! ConsInit(pCEServing, &rinit, 0); + /* If we didn't succeed, try again later */ + if (!pCEServing->fup) + pCEServing->autoReUp = 1; + continue; } Debug("Read %d bytes from fd %d", nr, pCEServing->fdtty); diff -cr conserver-7.1.3/conserver/version.h conserver-7.1.4-beta/conserver/version.h *** conserver-7.1.3/conserver/version.h Tue Oct 16 21:08:30 2001 --- conserver-7.1.4-beta/conserver/version.h Sun Dec 16 23:10:33 2001 *************** *** 1,5 **** /* ! * $Id: version.h,v 1.29 2001-10-16 21:08:28-07 bryan Exp $ * * Copyright conserver.com, 2000-2001 * --- 1,5 ---- /* ! * $Id: version.h,v 1.29 2001-10-16 21:08:28-07 bryan Exp bryan $ * * Copyright conserver.com, 2000-2001 * *************** *** 14,17 **** @(#) Copyright 2000 conserver.com.\n\ All rights reserved.\n" ! #define THIS_VERSION "conserver.com version 7.1.3" --- 14,17 ---- @(#) Copyright 2000 conserver.com.\n\ All rights reserved.\n" ! #define THIS_VERSION "conserver.com version 7.1.4-beta" diff -cr conserver-7.1.3/console/console.man conserver-7.1.4-beta/console/console.man *** conserver-7.1.3/console/console.man Mon Oct 15 22:46:20 2001 --- conserver-7.1.4-beta/console/console.man Sat Dec 1 04:46:49 2001 *************** *** 1,4 **** ! .\" $Id: console.man,v 1.12 2001-10-15 22:46:09-07 bryan Exp $ .TH CONSOLE 1 "Local" .SH NAME console \- console server client program --- 1,4 ---- ! .\" $Id: console.man,v 1.13 2001-12-01 04:46:37-08 bryan Exp $ .TH CONSOLE 1 "Local" .SH NAME console \- console server client program *************** *** 115,121 **** Display the pid of the master daemon process on each server. .TP .B \-q ! The \fBconsole\fP client requests that the server daemon quit (shut down). A password is sent in the protocol stream; if none is required for the local host to shut down the server, just press . .TP --- 115,122 ---- Display the pid of the master daemon process on each server. .TP .B \-q ! The \fBconsole\fP client connects to each server to request ! that the server daemon quit (shut down). A password is sent in the protocol stream; if none is required for the local host to shut down the server, just press . .TP Common subdirectories: conserver-7.1.3/contrib/redhat-rpm and conserver-7.1.4-beta/contrib/redhat-rpm Common subdirectories: conserver-7.1.3/contrib/solaris-package and conserver-7.1.4-beta/contrib/solaris-package diff -cr conserver-7.1.3/contrib/redhat-rpm/conserver.spec conserver-7.1.4-beta/contrib/redhat-rpm/conserver.spec *** conserver-7.1.3/contrib/redhat-rpm/conserver.spec Tue Oct 16 21:33:13 2001 --- conserver-7.1.4-beta/contrib/redhat-rpm/conserver.spec Sun Dec 16 23:12:42 2001 *************** *** 4,10 **** # %define pkg conserver ! %define ver 7.1.3 # define the name of the machine on which the main conserver # daemon will be running if you don't want to use the default --- 4,10 ---- # %define pkg conserver ! %define ver 7.1.4-beta # define the name of the machine on which the main conserver # daemon will be running if you don't want to use the default diff -cr conserver-7.1.3/contrib/solaris-package/pkginfo conserver-7.1.4-beta/contrib/solaris-package/pkginfo *** conserver-7.1.3/contrib/solaris-package/pkginfo Tue Oct 16 21:33:13 2001 --- conserver-7.1.4-beta/contrib/solaris-package/pkginfo Sun Dec 16 23:12:42 2001 *************** *** 1,7 **** PKG="conserver" NAME="Console server and client" CATEGORY="system" ! VERSION="7.1.3" DESC="Console server and client" CLASSES=none ARCH=sparc --- 1,7 ---- PKG="conserver" NAME="Console server and client" CATEGORY="system" ! VERSION="7.1.4-beta" DESC="Console server and client" CLASSES=none ARCH=sparc --NDin8bjvE/0mNLFQ-- From glenn.grimes@eircom.net Mon Dec 17 20:22:14 2001 From: glenn.grimes@eircom.net (Glenn Grimes) Date: Mon, 17 Dec 2001 20:22:14 -0000 Subject: users digest, Vol 1 #74 - 1 msg References: <200112172000.fBHK0B20007107@underdog.stansell.org> Message-ID: <006101c18738$841595d0$47c1869f@GLENNHOME> Hi Bryan, Thanks for the patch, I will be testing this properly from the 2nd week in January (possibly before), I will update the list with how I get on. Thanks again. Glenn ----- Original Message ----- From: To: Sent: Monday, December 17, 2001 8:00 PM Subject: users digest, Vol 1 #74 - 1 msg > Send users mailing list submissions to > users@conserver.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://www.conserver.com/mailman/listinfo/users > or, via email, send a message with subject or body 'help' to > users-request@conserver.com > > You can reach the person managing the list at > users-admin@conserver.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of users digest..." > > > Today's Topics: > > 1. 7.1.4-beta patch (Bryan Stansell) > > --__--__-- > > Message: 1 > Date: Sun, 16 Dec 2001 23:24:35 -0800 > From: Bryan Stansell > To: users@conserver.com > Subject: 7.1.4-beta patch > > > --NDin8bjvE/0mNLFQ > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > Well folks, I've attached a patch that will give you the > 'auto-reconnect' feature that was discussed here. It will try an > initial reconnect on a failure, and then continue to retry every minute > or so. It all seems to work in my testing, but I'd love to know of any > successes or failures for anyone out there that uses it. > > There were certain cases where consoles were 'forced down'...those > cases still exist. For the other, "non-standard" cases, this new code > kicks in. If you come across a 'forced down' case and it should really > be an auto-reconnect case, let me know. > > Bryan > > --NDin8bjvE/0mNLFQ > Content-Type: text/plain; charset=us-ascii > Content-Description: 7.1.4-beta.patch > Content-Disposition: attachment; filename="7.1.4-beta.patch" > > diff -cr conserver-7.1.3/CHANGES conserver-7.1.4-beta/CHANGES > *** conserver-7.1.3/CHANGES Tue Oct 16 21:32:43 2001 > --- conserver-7.1.4-beta/CHANGES Sun Dec 16 23:12:33 2001 > *************** > *** 1,6 **** > --- 1,10 ---- > CHANGES > ======= > > + version 7.1.4-beta (Dec 16, 2001): > + - Automatic reconnection of consoles on failures, retried every > + minute > + > version 7.1.3 (Oct 16, 2001): > - NetBSD 1.5 termios bug/compatibility - patch by Andreas Wrede > > *************** > *** 247,251 **** > and enhancements of various types were applied. > > # > ! # $Id: CHANGES,v 1.50 2001-10-16 21:32:33-07 bryan Exp $ > # > --- 251,255 ---- > and enhancements of various types were applied. > > # > ! # $Id: CHANGES,v 1.50 2001-10-16 21:32:33-07 bryan Exp bryan $ > # > Common subdirectories: conserver-7.1.3/autologin and conserver-7.1.4-beta/autologin > Common subdirectories: conserver-7.1.3/conserver and conserver-7.1.4-beta/conserver > Common subdirectories: conserver-7.1.3/conserver.cf and conserver-7.1.4-beta/conserver.cf > diff -cr conserver-7.1.3/conserver.html conserver-7.1.4-beta/conserver.html > *** conserver-7.1.3/conserver.html Tue Oct 16 21:33:13 2001 > --- conserver-7.1.4-beta/conserver.html Sun Dec 16 23:12:42 2001 > *************** > *** 167,176 **** > >

> The current version, released on RELEASE_DATE, is ! HREF="http://www.conserver.com/7.1.3.tar.gz"> > ! 7.1.3.tar.gz. You can get it via ! HREF="ftp://ftp.conserver.com/conserver/7.1.3.tar.gz">FTP > ! or HTTP. > See the CHANGES file for > information on the latest updates. >

> --- 167,176 ---- > >

> The current version, released on RELEASE_DATE, is ! HREF="http://www.conserver.com/7.1.4-beta.tar.gz"> > ! 7.1.4-beta.tar.gz. You can get it via ! HREF="ftp://ftp.conserver.com/conserver/7.1.4-beta.tar.gz">FTP > ! or HTTP. > See the CHANGES file for > information on the latest updates. >

> Common subdirectories: conserver-7.1.3/console and conserver-7.1.4-beta/console > Common subdirectories: conserver-7.1.3/contrib and conserver-7.1.4-beta/contrib > diff -cr conserver-7.1.3/conserver/consent.c conserver-7.1.4-beta/conserver/consent.c > *** conserver-7.1.3/conserver/consent.c Tue Oct 16 12:03:05 2001 > --- conserver-7.1.4-beta/conserver/consent.c Sun Dec 16 22:59:03 2001 > *************** > *** 1,5 **** > /* > ! * $Id: consent.c,v 5.71 2001-10-16 12:02:30-07 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > --- 1,5 ---- > /* > ! * $Id: consent.c,v 5.72 2001-12-16 22:58:59-08 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > *************** > *** 571,576 **** > --- 571,577 ---- > } > pCE->fup = 0; > pCE->nolog = 0; > + pCE->autoReUp = 0; > } > > int > *************** > *** 642,647 **** > --- 643,649 ---- > } > } > > + pCE->autoReUp = 0; > pCE->fronly = 0; > pCE->nolog = 0; > (void)strcpy(pCE->acline, pCE->server); > diff -cr conserver-7.1.3/conserver/consent.h conserver-7.1.4-beta/conserver/consent.h > *** conserver-7.1.3/conserver/consent.h Mon Jul 23 00:28:14 2001 > --- conserver-7.1.4-beta/conserver/consent.h Sun Dec 16 22:59:04 2001 > *************** > *** 1,5 **** > /* > ! * $Id: consent.h,v 5.22 2001-07-23 00:28:00-07 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > --- 1,5 ---- > /* > ! * $Id: consent.h,v 5.23 2001-12-16 22:58:59-08 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > *************** > *** 71,76 **** > --- 71,77 ---- > char networkConsoleHost[MAXSERVLEN]; > int networkConsolePort; > int telnetState; > + int autoReUp; > > /* used if virtual console */ > char acslave[MAXDEVLEN]; /* pseudo-device slave side */ > diff -cr conserver-7.1.3/conserver/group.c conserver-7.1.4-beta/conserver/group.c > *** conserver-7.1.3/conserver/group.c Tue Oct 16 21:29:05 2001 > --- conserver-7.1.4-beta/conserver/group.c Sun Dec 16 22:59:31 2001 > *************** > *** 1,5 **** > /* > ! * $Id: group.c,v 5.140 2001-10-16 21:29:01-07 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > --- 1,5 ---- > /* > ! * $Id: group.c,v 5.141 2001-12-16 22:59:06-08 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > *************** > *** 189,195 **** > } > > static void > ! ReUp(pGE, prinit) > GRPENT *pGE; > fd_set *prinit; > { > --- 189,195 ---- > } > > static void > ! ReUp(pGE, automatic, prinit) > GRPENT *pGE; > fd_set *prinit; > { > *************** > *** 201,211 **** > } > > for (i = 0, pCE = pGE->pCElist; i < pGE->imembers; ++i, ++pCE) { > ! if (pCE->fup) { > continue; > ! } > ! if (fNoinit) > ! continue; > ConsInit(pCE, prinit, 1); > } > } > --- 201,211 ---- > } > > for (i = 0, pCE = pGE->pCElist; i < pGE->imembers; ++i, ++pCE) { > ! if (pCE->fup || fNoinit || (automatic && !pCE->autoReUp)) > continue; > ! if (automatic) > ! Info("%s: automatic reinitialization [%s]", pCE->server, > ! strtime(NULL)); > ConsInit(pCE, prinit, 1); > } > } > *************** > *** 438,444 **** > pCE->pCLwr = (CONSCLIENT *) 0; > } > > ! ConsDown(pCE, prinit); > } > } > } > --- 438,451 ---- > pCE->pCLwr = (CONSCLIENT *) 0; > } > > ! /* Try an initial reconnect */ > ! Info("%s: automatic reinitialization [%s]", pCE->server, > ! strtime(NULL)); > ! ConsInit(pCE, prinit, 0); > ! > ! /* If we didn't succeed, try again later */ > ! if (!pCE->fup) > ! pCE->autoReUp = 1; > } > } > } > *************** > *** 681,686 **** > --- 688,694 ---- > pCE[iConsole].pCLon = pCE[iConsole].pCLwr = (CONSCLIENT *) 0; > pCE[iConsole].fdlog = (CONSFILE *) 0; > pCE[iConsole].fdtty = -1; > + pCE[iConsole].autoReUp = 0; > } > sprintf(CECtl.server, "ctl_%d", pGE->port); > CECtl.inamelen = strlen(CECtl.server); /* bogus, of course */ > *************** > *** 754,764 **** > } > if (fSawReUp) { > fSawReUp = 0; > ! ReUp(pGE, &rinit); > } > if (fSawMark) { > fSawMark = 0; > Mark(pGE, &rinit); > } > > rmask = rinit; > --- 762,773 ---- > } > if (fSawReUp) { > fSawReUp = 0; > ! ReUp(pGE, 0, &rinit); > } > if (fSawMark) { > fSawMark = 0; > Mark(pGE, &rinit); > + ReUp(pGE, 1, &rinit); > } > > rmask = rinit; > *************** > *** 796,804 **** > pCEServing->pCLwr = (CONSCLIENT *) 0; > } > > ! /*ConsInit(pCEServing, &rinit, 0); */ > ! ConsDown(pCEServing, &rinit); > > continue; > } > Debug("Read %d bytes from fd %d", nr, pCEServing->fdtty); > --- 805,819 ---- > pCEServing->pCLwr = (CONSCLIENT *) 0; > } > > ! /* Try an initial reconnect */ > ! Info("%s: automatic reinitialization [%s]", > ! pCEServing->server, strtime(NULL)); > ! ConsInit(pCEServing, &rinit, 0); > > + /* If we didn't succeed, try again later */ > + if (!pCEServing->fup) > + pCEServing->autoReUp = 1; > + > continue; > } > Debug("Read %d bytes from fd %d", nr, pCEServing->fdtty); > diff -cr conserver-7.1.3/conserver/version.h conserver-7.1.4-beta/conserver/version.h > *** conserver-7.1.3/conserver/version.h Tue Oct 16 21:08:30 2001 > --- conserver-7.1.4-beta/conserver/version.h Sun Dec 16 23:10:33 2001 > *************** > *** 1,5 **** > /* > ! * $Id: version.h,v 1.29 2001-10-16 21:08:28-07 bryan Exp $ > * > * Copyright conserver.com, 2000-2001 > * > --- 1,5 ---- > /* > ! * $Id: version.h,v 1.29 2001-10-16 21:08:28-07 bryan Exp bryan $ > * > * Copyright conserver.com, 2000-2001 > * > *************** > *** 14,17 **** > @(#) Copyright 2000 conserver.com.\n\ > All rights reserved.\n" > > ! #define THIS_VERSION "conserver.com version 7.1.3" > --- 14,17 ---- > @(#) Copyright 2000 conserver.com.\n\ > All rights reserved.\n" > > ! #define THIS_VERSION "conserver.com version 7.1.4-beta" > diff -cr conserver-7.1.3/console/console.man conserver-7.1.4-beta/console/console.man > *** conserver-7.1.3/console/console.man Mon Oct 15 22:46:20 2001 > --- conserver-7.1.4-beta/console/console.man Sat Dec 1 04:46:49 2001 > *************** > *** 1,4 **** > ! .\" $Id: console.man,v 1.12 2001-10-15 22:46:09-07 bryan Exp $ > .TH CONSOLE 1 "Local" > .SH NAME > console \- console server client program > --- 1,4 ---- > ! .\" $Id: console.man,v 1.13 2001-12-01 04:46:37-08 bryan Exp $ > .TH CONSOLE 1 "Local" > .SH NAME > console \- console server client program > *************** > *** 115,121 **** > Display the pid of the master daemon process on each server. > .TP > .B \-q > ! The \fBconsole\fP client requests that the server daemon quit (shut down). > A password is sent in the protocol stream; if none is required for > the local host to shut down the server, just press . > .TP > --- 115,122 ---- > Display the pid of the master daemon process on each server. > .TP > .B \-q > ! The \fBconsole\fP client connects to each server to request > ! that the server daemon quit (shut down). > A password is sent in the protocol stream; if none is required for > the local host to shut down the server, just press . > .TP > Common subdirectories: conserver-7.1.3/contrib/redhat-rpm and conserver-7.1.4-beta/contrib/redhat-rpm > Common subdirectories: conserver-7.1.3/contrib/solaris-package and conserver-7.1.4-beta/contrib/solaris-package > diff -cr conserver-7.1.3/contrib/redhat-rpm/conserver.spec conserver-7.1.4-beta/contrib/redhat-rpm/conserver.spec > *** conserver-7.1.3/contrib/redhat-rpm/conserver.spec Tue Oct 16 21:33:13 2001 > --- conserver-7.1.4-beta/contrib/redhat-rpm/conserver.spec Sun Dec 16 23:12:42 2001 > *************** > *** 4,10 **** > # > > %define pkg conserver > ! %define ver 7.1.3 > > # define the name of the machine on which the main conserver > # daemon will be running if you don't want to use the default > --- 4,10 ---- > # > > %define pkg conserver > ! %define ver 7.1.4-beta > > # define the name of the machine on which the main conserver > # daemon will be running if you don't want to use the default > diff -cr conserver-7.1.3/contrib/solaris-package/pkginfo conserver-7.1.4-beta/contrib/solaris-package/pkginfo > *** conserver-7.1.3/contrib/solaris-package/pkginfo Tue Oct 16 21:33:13 2001 > --- conserver-7.1.4-beta/contrib/solaris-package/pkginfo Sun Dec 16 23:12:42 2001 > *************** > *** 1,7 **** > PKG="conserver" > NAME="Console server and client" > CATEGORY="system" > ! VERSION="7.1.3" > DESC="Console server and client" > CLASSES=none > ARCH=sparc > --- 1,7 ---- > PKG="conserver" > NAME="Console server and client" > CATEGORY="system" > ! VERSION="7.1.4-beta" > DESC="Console server and client" > CLASSES=none > ARCH=sparc > > --NDin8bjvE/0mNLFQ-- > > > --__--__-- > > _______________________________________________ > users mailing list > users@conserver.com > https://www.conserver.com/mailman/listinfo/users > > > End of users Digest >