Skip to content

Commit

Permalink
recipe2unit ipc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpate committed Nov 8, 2024
1 parent b0fe8c0 commit 50e69ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipe2unit/src/unit_file_generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ static GglError fill_unit_section(
return dependency_parser(val, concat_unit_vector);
}
}
ret = ggl_byte_vec_append(
concat_unit_vector,
GGL_STR(
"Wants=ggl.core.ggipcd.service\nAfter=ggl.core.ggipcd.service\n"
)
);
if (ret != GGL_ERR_OK) {
return ret;
}
}

return GGL_ERR_OK;
Expand Down Expand Up @@ -341,6 +350,7 @@ static GglError concat_exec_start_section_vec(
}
cwd.len = strlen((char *) cwd.data);
exec_start_section_vec->buf.len += cwd.len;
GGL_LOGD("%.*s (%zu)", (int) cwd.len, cwd.data, cwd.len);

ggl_byte_vec_chain_append(&ret, exec_start_section_vec, GGL_STR("/"));
if (ret != GGL_ERR_OK) {
Expand Down

0 comments on commit 50e69ac

Please sign in to comment.