From f8a8ea0a793f94f9ced8f0f24e96ba5169d6d54e Mon Sep 17 00:00:00 2001 From: Cristiano Giuffrida Date: Tue, 13 Jul 2010 21:11:44 +0000 Subject: [PATCH] Dynamic configuration in system.conf for boot system services. --- commands/service/service.c | 324 +++++++++++++++++++------ docs/UPDATING | 7 + etc/rc | 24 +- etc/system.conf | 270 ++++++++++++++++++--- include/minix/const.h | 5 +- include/minix/priv.h | 68 ++++++ include/minix/rs.h | 16 +- kernel/main.c | 13 +- kernel/priv.h | 55 ----- kernel/system/do_privctl.c | 26 +- lib/libc/other/Makefile.inc | 1 - lib/libc/other/rss_nice.c | 88 ------- servers/rs/const.h | 36 +-- servers/rs/inc.h | 1 + servers/rs/main.c | 28 ++- servers/rs/manager.c | 458 ++++++++++++++++++------------------ servers/rs/request.c | 67 ++++-- servers/rs/table.c | 76 ++---- servers/rs/type.h | 6 - servers/rs/utility.c | 4 +- 20 files changed, 941 insertions(+), 632 deletions(-) delete mode 100644 lib/libc/other/rss_nice.c diff --git a/commands/service/service.c b/commands/service/service.c index ba5e4e89f..1ad832642 100644 --- a/commands/service/service.c +++ b/commands/service/service.c @@ -124,9 +124,6 @@ PRIVATE int req_lu_maxtime = DEFAULT_LU_MAXTIME; PRIVATE char command[4096]; /* Arguments for RS to start a new service */ -PRIVATE endpoint_t rss_scheduler; -PRIVATE unsigned rss_priority; -PRIVATE unsigned rss_quantum; PRIVATE struct rs_start rs_start; /* An error occurred. Report the problem, print the usage, and exit. @@ -140,10 +137,10 @@ PRIVATE void print_usage(char *app_name, char *problem) app_name, OPT_COPY, OPT_REUSE, OPT_NOBLOCK, OPT_REPLICA, SELF_BINARY, ARG_ARGS, ARG_DEV, ARG_DEVSTYLE, ARG_PERIOD, ARG_SCRIPT, ARG_LABELNAME, ARG_CONFIG, ARG_LU_STATE, ARG_LU_MAXTIME); - fprintf(stderr, " %s down label\n", app_name); - fprintf(stderr, " %s refresh label\n", app_name); - fprintf(stderr, " %s restart label\n", app_name); - fprintf(stderr, " %s clone label\n", app_name); + fprintf(stderr, " %s down