summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-23 00:48:02 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-23 00:48:02 +0200
commit5c781d6b0dd2d5fce3cacd653ac10556e39b857b (patch)
treeb14b0f6bc158da6984e4de76ac43e3d2ab4eace4 /src
parent73de5e9464e0b50db45dc1d2278a9eba3fa4fc79 (diff)
parent8ebfe0cbaad12b55fd022650a841149a548d3e60 (diff)
Merge pull request #1346 from dvdhrm/user-shutdown
core: fix shutdown of --user
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 9c1f8648e7..b57f4c1b7a 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -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: