Commit e78cf316 authored by Per Cederqvist's avatar Per Cederqvist

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

parent 87c06c9d
1999-04-17 Per Cederqvist <ceder@lysator.liu.se> 1999-04-17 Per Cederqvist <ceder@lysator.liu.se>
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
mail.
(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
files.
(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/Makefile.am (READ_CONFIG): New variable.
(komrunning_SOURCES): Use READ_CONFIG to simplify code.
(updateLysKOM_SOURCES): Added READ_CONFIG.
* src/server/param.h (struct kom_par): New parameters:
lyskomd_path, normal_shutdown_time, downtime_mail_start and
downtime_mail_end.
* 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. Handle many simultaneous clients.
* src/server/connections.c (login_request): Don't handle the "% No * src/server/connections.c (login_request): Don't handle the "% No
connections left" situation. connections left" situation.
......
Markdown is supported
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