On 2012-02-29, Dennis Lefebvre <
uni...@gmail.com> wrote:
> Context: We first acquired a 3B1 in 1988 and have used one
> continuously to run a customized software application.(I know this
> defies commonsense.We "solved" Y2K incompatibility in our application
> software by setting the system year to 1980. It is now 1992.)
O.K. Some parts could be fixed (for locally compiled programs)
by installing a more modern libctime and such and I had such back when I
was running mine to keep the DST switch at the right time for those
programs (and recompiling date and a few others could get around a lot
of problems.)
The system itself can keep going well past Y2K, except for a
program which tries to reset the battery backed up time chip, which is
*not* Y2K compliant. Last time I had to bring one of the systems up (a
few years ago) I managed to make some programs to force it past Y2K, but
it was kludgy.
> Today, we typically have one unit in service with one parallel and one
> serial printer attached. A second fully operational unit is kept ready
> to swap in on failure, and others are in various states.
>
> The built-in serial (TTY000) is used for the serial printer. We use
> two RS232 COMBO expansion boards which adds four more serial ports, of
> which three are used for terminal access (Windows PCs running Kermit
> 95). We were not always consistent about which serial port was used
> for the printer and there is an anomaly. "Install" shows an obsolete
> printer ATT455 on TTY002 even though that port is actually used by a
> terminal. I do not think this is directly relevant to this problem
> because the anomaly also appears in the unit with the scheduler
> running.
O.K. Can you get it to remove that one, just to be sure?
Probably not the source of the problem, but it should be fixed.
> strings is not included in this version of Unix.
But is easily compiled for it. Probably the best source would
be the GNU binutils suite. Yep -- I just checked, and it is there. If
you need an old set, I have one from about 1996. You *do* have the
development set, don't you?
> MAN files list shows /
> usr/spool/lp/* and there are differences in the file lists on two
> units. On the machine with the scheduler running there are two
> additional files in /usr/spool/lp:
>
> -rw------- 1 lp other 0 Feb 29 12:48 FIFO
> -r--r--r-- 1 lp other 4 Feb 29 08:57 SCHEDLOCK
>
> I assume these files are created by /usr/lib/lpsched. I tried copying
> them onto the unit, but no effect and they were deleted when the
> machine was restarted.
SCHEDLOCK is a lockfile to keep two copies of the lp scheduling
daemon from running at the same time. The four bytes are probably the
UID of the program which created it and a terminating NULL.
The other is a "named pipe" or a
FIFO (First In First Out), which is created by the program, and which
goes away when the starting program dies. It can only be read by one
program, and only written by another program.
Your "copy", which is not a true FIFO, is probably removed
before the daemon tries to start, then when the FIFO starts it creates
it, dies for whatever other reason, and removed it in its death throes.
the file(1) command should be able to tell you that. Or extra
options to the ls(1) command should also tell you that. Hmm ... it
*should* put a 'm' in place of the '-' as the first character of the
modes. Is this by any chance the listing from the system with problems,
so this would be a plain text file instead of a special file?
Look at the man page for mknod(2) and you will find an option to
it for creating a fifo (mode 0010000). Note that mknod(2) is not a
command, but a system call, and so you need to compile it into a program
to use it.
> Both copies of /usr/lib/lpsched report the same checksum.
Check the ownership and permissions on the directory, and all
files leading up to it, to make sure that either the UID for lp, or the
GID for other can write to the /usr/spool/lp. (First verifying that
those are the correct ownerships in the working system).
I can't seem to find the lpsched man page for the 3B1. (I've
always suspected that my copies of the manuals are not complete. Are
there any options to lpsched which could get it to produce more useful
error messages -- perhaps by not going into background mode as a daemon
normally does.
O.K. The man page for lpsched on Sun's Solaris 2.6 does not
include any options for reporting problems. Even the one for Sun's
Solaris 10 does not have any reporting options, though it does have
options for other purposes.
So -- not much else to check, but something.
Good Luck,
DoN.
--
Remove oil spill source from e-mail
Email: <
BPdnic...@d-and-d.com> | Voice (all times):
(703) 938-4564