From ff6bb7acdada86635cb09530d4ba3f4147b008da Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 6 Aug 2008 19:56:15 +0200 Subject: add a few configuration sanity checks for system mode --- src/daemon/main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/daemon/main.c b/src/daemon/main.c index 048af1e6..00469c7a 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -635,6 +635,22 @@ int main(int argc, char *argv[]) { goto finish; } + if (conf->system_instance && !conf->disallow_exit) + pa_log_warn(_("Running in system mode, but --disallow-exit not set!")); + + if (conf->system_instance && !conf->disallow_module_loading) + pa_log_warn(_("Running in system mode, but --disallow-module-loading not set!")); + + if (conf->system_instance && !conf->disable_shm) { + pa_log_notice(_("Running in system mode, forcibly disabling SHM mode!")); + conf->disable_shm = TRUE; + } + + if (conf->system_instance && conf->exit_idle_time > 0) { + pa_log_notice(_("Running in system mode, forcibly disabling exit idle time!")); + conf->exit_idle_time = 0; + } + if (conf->cmd == PA_CMD_START) { /* If we shall start PA only when it is not running yet, we * first take the autospawn lock to make things -- cgit