summaryrefslogtreecommitdiff
path: root/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 04:27:05 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 04:27:05 +0200
commit1005d14f4a6d5bd8f035169cb5df4c890284f211 (patch)
tree2d2009530acbf2356263726ad36d5b7a8207a0a0 /manager.c
parentdb06e3b6a5254ec247de5bc1a1b6a8670c2f4b2b (diff)
manager: switch SIGUSR1 and SIGSUR2, to follow upstart's scheme a little
Diffstat (limited to 'manager.c')
-rw-r--r--manager.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/manager.c b/manager.c
index cf1c1481c1..1691719a66 100644
--- a/manager.c
+++ b/manager.c
@@ -1816,12 +1816,7 @@ static int manager_process_signal_fd(Manager *m) {
/* This is a nop on non-init */
break;
- case SIGUSR1:
- manager_dump_units(m, stdout, "\t");
- manager_dump_jobs(m, stdout, "\t");
- break;
-
- case SIGUSR2: {
+ case SIGUSR1: {
Unit *u;
u = manager_get_unit(m, SPECIAL_DBUS_SERVICE);
@@ -1840,6 +1835,11 @@ static int manager_process_signal_fd(Manager *m) {
break;
}
+ case SIGUSR2:
+ manager_dump_units(m, stdout, "\t");
+ manager_dump_jobs(m, stdout, "\t");
+ break;
+
case SIGHUP:
m->exit_code = MANAGER_RELOAD;
break;