Merge pull request #1346 from dvdhrm/user-shutdown

core: fix shutdown of --user
This commit is contained in:
Lennart Poettering 2015-09-23 00:48:02 +02:00
commit 5c781d6b0d

View file

@ -1807,6 +1807,13 @@ int main(int argc, char *argv[]) {
goto finish;
case MANAGER_EXIT:
if (m->running_as == MANAGER_USER) {
retval = EXIT_SUCCESS;
log_debug("Exit.");
goto finish;
}
/* fallthrough */
case MANAGER_REBOOT:
case MANAGER_POWEROFF:
case MANAGER_HALT: