Can help since the journal requires /etc/machine-id to exists in order to start,
and will simply silently exit when it does not.
char ids[33];
r = sd_id128_get_machine(&machine);
char ids[33];
r = sd_id128_get_machine(&machine);
+ if (r < 0) {
+ log_error("Failed to get machine id: %s", strerror(-r));
sd_id128_to_string(machine, ids);
sd_id128_to_string(machine, ids);
log_debug("Flushing to /var...");
r = sd_id128_get_machine(&machine);
log_debug("Flushing to /var...");
r = sd_id128_get_machine(&machine);
- if (r < 0) {
- log_error("Failed to get machine id: %s", strerror(-r));
r = sd_journal_open(&j, SD_JOURNAL_RUNTIME_ONLY);
if (r < 0) {
r = sd_journal_open(&j, SD_JOURNAL_RUNTIME_ONLY);
if (r < 0) {