Commit e78cf316 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

updateLysKOM now reads the configuration file. Fixes to komrunning.c.

parent 87c06c9d
1999-04-17 Per Cederqvist <>
updateLysKOM now reads the configuration file.
* src/server/updateLysKOM.c (usage): New function.
(checkstatus): Use parameters "Normal shutdown time", "Mail after
downtime" and "Mail until downtime" instead of
using hard-coded values. Use "mail" instead of "Mail" to send the
(main): Read the configuration file. Use parameters "Pid file",
"Status file" and "lyskomd path" instead of hard-coded values.
* src/server/server-config.c (param): Moved here from various
(parameters): Added "Normal shutdown time", "Mail after downtime",
"Mail until downtime" and "lyskomd path".
(read_configuration): Handle param.lyskomd_path.
* src/server/ramkomd.c: (param): Moved to server-config.c.
* src/server/dbck.c (param): Moved to server-config.c.
* src/server/ (READ_CONFIG): New variable.
(komrunning_SOURCES): Use READ_CONFIG to simplify code.
* src/server/param.h (struct kom_par): New parameters:
lyskomd_path, normal_shutdown_time, downtime_mail_start and
* src/server/server-config.c (parameters): Moved a few entries
around, so that they fit under the various headings.
Fixes to komrunning.c.
* src/server/komrunning.c (param): Moved to server-config.c.
(create_status): Write the name of the user as the first line of
the status file. With luck, that is a valid email address.
Handle many simultaneous clients.
* src/server/connections.c (login_request): Don't handle the "% No
connections left" situation.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment