Last update 04-Jul-2000
The directory $MBSE_ROOT/sema is the hardcoded semafore directory where all
semafore's must be created, tested and removed. When the system is booting,
the scripts "mbse.start" will erase all semafore's just before the BBS 
is started.
This description is valid from MBSE BBS v0.33/gamma-9 and newer.


msglink		Purpose: signal when new mail is imported to update the
		reply link chains.
		Created by "mbfido" when mail has been imported/exported
		Created by "mbaff" when mail is created.
		Removed by "mbmsg link" when it's finished.

mailout		Purpose: scan the message bases for new entered messages.
		Created by "mbsebbs" when mail is entered.
		Created by "mbaff" when mail is created.
		Created by "mbmsg" when a message is posted.
		Removed by "mbfido scan" when mail is processed.

mailin		Purpose: signal when there is something to process in the
		protected inbound.
		Created by "mbcico" when mail or files are received.
		Created by "mbdiff" when new nodelists are created.
		Created by "mball" when allfiles lists are created.
		Created by "run_inout" when news is received.
		Removed by "mbfido toss tic" when the inbound is empty.

scanout		Purpose: let the "mailer" script run "mbcico" in master mode
		so that the mail gets to the world. (Without this script 
		mbcico must be called, even if there is nothing to do so you
		end up with large logfiles with are boring to read).
		Created by scripts if there is mail to send.
		Created by "mbfido" if it changed the outbound.
		Removed by "mbcico -r1" if outbound is empty.
		Created by "mbout" with "att" or "poll" commands.
		Created by "mbstat" at the start or end of Zone Mail Hour or 
		when the bbs state is changed to open.

zmh		Purpose: to mark the state of Zone Mail Hour. Is tested by
		mbstat to see if the status is changed.
		Created by "mbstat" at the start of Zone Mail Hour.
		Removed by "mbstat" at the end of Zone Mail Hour.

bbsopen		Purpose: information only.
		Created by "mbstat" if the bbs is open.
		Removed by "mbstat" if the bbs is closed.

bbsclosed	Purpose: block some scripts.
		Created by "mbstat" if the bbs is closed.
		Removed by "mbstat" if the bbs is open.

mbindex		Purpose: let's the "run_inout" script start "mbindex".
		Created by "mbfido tic" when the magic compile flag is true.
		Removed by "mbindex" when the nodelists are compiled.

reqindex	Purpose: let's the "run_inout" script start "mbfile index".
		Created by "mbfido tic" when there was any file imported.
		Removed by "mbfile" when the new request.index is created.

newsout		Purpose: start the newsgate.
		Created by the "run_inout" script when mail is processed.
		Removed by the "run_inout" script when the newsgate is done.

run_inout.run	Purpose: a lock for the "run_inout" script to prevent it
		will run more than once at the same time.
		Created by the "run_inout" script when it's active.
		Removed by the "run_inout" script when it's finished.

run_inout.last	Purpose: Time stamp when the "run_inout" script has run for 
		the last time, for information only.

upsalarm	Purpose: Signal that the system is running on battery power.
		Created and removed by UPS software.
		Checked by several scripts.

upsdown		Purpose: Signal that the system will go down on low battery.
		Created and removed by UPS software.
		Checked by several scripts and "mbstat wait".
		Checked by "mbfido" to abort processing.

Back Go Back