Top@mutec.UUCP (The OS9 Project) (08/02/88)
SYSINFO
=======
SYSINFO is one of the most important new features added to
OS-9/68000 by TOP (The OS-9 Project) Munich. It is COPYRIGHTED
by reccoware systems, Wolfgang Ocker, Puchheim (W-Germany).
Sysinfo consists of four parts:
1. The ASCII-File called "sysinfo" and usually located
in /h0/SYS,
2. The program "setup"
3. The memory module "SysInfo" created by "setup"
4. The program "getinfo"
The "setup" program reads the file given as parameter (e.g.
/h0/SYS/sysinfo) and creates a memory module that contains the
information given in the file. There are two basic types of
entries in SysInfo: strings and locks. This information can be
read by every program that uses SysInfo in order to get specific
configuration parameters or in order to lock devices or files or
anything else.
These tow types of entries have the following syntax:
<name of entry>,<type of entry>=<entry>
<type of entry> can be 's' for strings or 'l' for locks.
Examples:
#
# This is an entry of the string type:
hostname,s=os9sys
#
# This is an lockable entry:
term1,l
In such a sysinfo-file "#" can be used to insert remarks.
Here is a sample sysinfo file to illustrate how easy you can
configure things without changing every .login or .cshrc :
#
# sysinfo sample
#
hostname,s=mysys
#
path,s=/h0/CMDS:/h0/ETC/CMDS:/h0/USR/CMDS:/h0/USR/GAMES/CMDS
#
# NOTES
#
NOTES.LOCKDIR,s=/dd/SYS/.LOCKS/NOTES
#
# home- and spool-directories
#
MAIL.SPOOL,s=/h0/SPOOL/MAIL
MAIL.LOCK,s=/dd/SYS/.LOCKS/MAIL
UUCP.SPOOL,s=/h0/SPOOL/UUCP
UUCP.PUBDIR,s=/h0/SPOOL/UUCPPUBLIC
UUCP.LIB,s=/h0/USR/LIB/UUCP
SMAIL.LIB,s=/h0/USR/LIB/SMAIL
SMAIL.LOG,s=/h0/SPOOL/UUCP/.LOG/mail.log
#
# UUCP-Lock
#
lck.uucp,l
#
# MMon Locks
#
mmon.term,l
mmon.term1,l
mmon.term2,l
mmon.t1,l
#
# Locks
#
term,l
term1,l
term2,l
t1,l
p,l
The "getinfo" utility allows you to inspect the current status
of the "SysInfo" data module. "getinfo" shows the status of the
lock entries (locked, orphaned, free), including process ID and
name of the locking process. With "getinfo" you can unlock
entries, too, which normally kills the locking process.
getinfo
SYSINFO Rev. 1
Name Type Parameter
term Lock locked by process 12 (mmon)
term1 Lock locked by process 7 (mmon)
term2 Lock locked by process 9 (mmon)
t1 Lock locked by process 13 (uucico)
t2 Lock locked by process 5 (mmon)
lck.uucp Lock locked by process 13 (uucico)
lck.passwd Lock orphaned lock (process id 8)
The "SysInfo Programmers Information" will soon be released
here.
(TOP Munich)