summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-17 03:00:51 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-17 03:00:51 +0200
commit0b479ffbbad54b8baa702d1742ebcd9eea2895ec (patch)
tree8dccb8655d03300ae2fe023b924887c2f82ca766 /src/daemon
parent1e8a374f2f26edbe68d2fc3c049ef7ccdf855d56 (diff)
daemon: write a warning blurb to syslog when folks use --system mode
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 58f8d6603..8058e1221 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -930,6 +930,11 @@ int main(int argc, char *argv[]) {
pa_log_info(_("Running in system mode: %s"), pa_yes_no(pa_in_system_mode()));
+ if (pa_in_system_mode())
+ pa_log_warn(_("OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that.\n"
+ "If you do it nonetheless then it's your own fault if things don't work as expected.\n"
+ "Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation why system mode is usually a bad idea."));
+
if (conf->use_pid_file) {
int z;