chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbus: be a bit more verbose for bus activation
[elogind.git]
/
src
/
service.c
diff --git
a/src/service.c
b/src/service.c
index 2ce95f5a9f2016e38e619e4aeea405e02db6db15..8b1fab785ac364e287befcbe14bfda708c501d08 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-58,10
+58,10
@@
static const struct {
{ "rc6.d", SPECIAL_RUNLEVEL6_TARGET, RUNLEVEL_DOWN },
/* SUSE style boot.d */
{ "rc6.d", SPECIAL_RUNLEVEL6_TARGET, RUNLEVEL_DOWN },
/* SUSE style boot.d */
- { "boot.d", SPECIAL_
BASIC_TARGET,
RUNLEVEL_BASIC },
+ { "boot.d", SPECIAL_
SYSINIT_TARGET,
RUNLEVEL_BASIC },
/* Debian style rcS.d */
/* Debian style rcS.d */
- { "rcS.d", SPECIAL_
BASIC_TARGET,
RUNLEVEL_BASIC },
+ { "rcS.d", SPECIAL_
SYSINIT_TARGET,
RUNLEVEL_BASIC },
};
#define RUNLEVELS_UP "12345"
};
#define RUNLEVELS_UP "12345"
@@
-1963,14
+1963,18
@@
static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
break;
case SERVICE_START:
break;
case SERVICE_START:
- assert(s->type == SERVICE_FINISH);
+ if (s->type == SERVICE_FINISH) {
+ /* This was our main goal, so let's go on */
+ if (success)
+ service_enter_start_post(s);
+ else
+ service_enter_signal(s, SERVICE_FINAL_SIGTERM, false);
+ break;
+ } else {
+ assert(s->type == SERVICE_DBUS);
- /* This was our main goal, so let's go on */
- if (success)
- service_enter_start_post(s);
- else
- service_enter_signal(s, SERVICE_FINAL_SIGTERM, false);
- break;
+ /* Fall through */
+ }
case SERVICE_RUNNING:
service_enter_running(s, success);
case SERVICE_RUNNING:
service_enter_running(s, success);