X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.c;h=0bcd09c4cf1686bba3a021d8c312389936f1bb4e;hb=82e487c56d0947796793b6fd2836264328defe9f;hp=e10441c862d7766ea06890afd33113712ce6c1bc;hpb=9a0e68963464b6bc159cad53fd745491cd0b90f7;p=elogind.git diff --git a/src/main.c b/src/main.c index e10441c86..0bcd09c4c 100644 --- a/src/main.c +++ b/src/main.c @@ -898,6 +898,9 @@ static int prepare_reexecute(Manager *m, FILE **_f, FDSet **_fds) { assert(_f); assert(_fds); + /* Make sure nothing is really destructed when we shut down */ + m->n_reloading ++; + if ((r = manager_open_serialization(m, &f)) < 0) { log_error("Failed to create serialization file: %s", strerror(-r)); goto fail; @@ -988,7 +991,7 @@ static void test_usr(void) { if (dir_is_empty("/usr") <= 0) return; - log_warning("/usr appears to be on a different file system than /. This is not supported anymore. " + log_warning("/usr appears to be on its own filesytem and is not already mounted. This is not a supported setup. " "Some things will probably break (sometimes even silently) in mysterious ways. " "Consult http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken for more information."); } @@ -1063,7 +1066,7 @@ int main(int argc, char *argv[]) { } } else { arg_running_as = MANAGER_USER; - log_set_target(LOG_TARGET_CONSOLE); + log_set_target(LOG_TARGET_AUTO); } if (set_default_unit(SPECIAL_DEFAULT_TARGET) < 0)