chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8d3418
)
service: don't timeout special services
author
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 16:39:37 +0000
(18:39 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 16:39:37 +0000
(18:39 +0200)
service.c
patch
|
blob
|
history
diff --git
a/service.c
b/service.c
index ddf03bbf12cc528599fc62e08d9bb15d381c99e4..86406e8041e5678c52140e82d376a1850da44728 100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-623,6
+623,10
@@
static int service_load_sysv_path(Service *s, const char *path) {
/* Special setting for all SysV services */
s->valid_no_process = true;
/* Special setting for all SysV services */
s->valid_no_process = true;
+ /* Don't timeout special services during boot (like fsck) */
+ if (!chars_intersect("12345", s->sysv_runlevels))
+ s->timeout_usec = -1;
+
u->meta.load_state = UNIT_LOADED;
r = 0;
u->meta.load_state = UNIT_LOADED;
r = 0;