don't allow --start in system mode

This commit is contained in:
Lennart Poettering 2008-07-30 20:36:34 +02:00
parent 656d243f2b
commit 0b428e7cb1

View file

@ -627,6 +627,11 @@ int main(int argc, char *argv[]) {
goto finish; goto finish;
} }
if (conf->cmd == PA_CMD_START && conf->system_instance) {
pa_log("--start not supported for system instances.");
goto finish;
}
if (conf->cmd == PA_CMD_START) { if (conf->cmd == PA_CMD_START) {
/* If we shall start PA only when it is not running yet, we /* If we shall start PA only when it is not running yet, we
* first take the autospawn lock to make things * first take the autospawn lock to make things