daemon: write a warning blurb to syslog when folks use --system mode

This commit is contained in:
Lennart Poettering 2009-06-17 03:00:51 +02:00
parent 1e8a374f2f
commit 0b479ffbba

View file

@ -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;