NAME

lonc - LON TCP-MySQL-Server Daemon for handling database requests.


SYNOPSIS

Usage: lonc

Should only be run as user=www. This is a command-line script which is invoked by loncron. There is no expectation that a typical user will manually start lonc from the command-line. (In other words, DO NOT START lonc YOURSELF.)


DESCRIPTION

Provides persistent TCP connections to the other servers in the network through multiplexed domain sockets

lonc forks off children processes that correspond to the other servers in the network. Management of these processes can be done at the parent process level or the child process level.

  After forking off the children, B<lonc> the B<parent> 
executes a main loop which simply waits for processes to exit.
As a process exits, a new process managing a link to the same
peer as the exiting process is created.

logs/lonc.log is the location of log messages.

The process management is now explained in terms of linux shell commands, subroutines internal to this code, and signal assignments:


PREREQUISITES

POSIX IO::Socket IO::Select IO::File Socket Fcntl Tie::RefHash Crypt::IDEA


COREQUISITES


OSNAMES

linux


SCRIPT CATEGORIES

Server/Process