chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing header files
[elogind.git]
/
main.c
diff --git
a/main.c
b/main.c
index 2486f06292144d4e4ea941c18cf826e731bcc701..26d327cfac08a7e46967efc0e3d4ba7118934828 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-21,7
+21,12
@@
int main(int argc, char *argv[]) {
goto finish;
}
goto finish;
}
- if ((r = manager_load_unit(m, "default.target", &target)) < 0) {
+ if ((r = manager_coldplug(m)) < 0) {
+ log_error("Failed to retrieve coldplug information: %s", strerror(-r));
+ goto finish;
+ }
+
+ if ((r = manager_load_unit(m, SPECIAL_DEFAULT_TARGET, &target)) < 0) {
log_error("Failed to load default target: %s", strerror(-r));
goto finish;
}
log_error("Failed to load default target: %s", strerror(-r));
goto finish;
}