Repository navigation
create dirs with systemd-tmpfiles instead of RuntimeDirectory - #331
Conversation
RuntimeDirectory= deletes /run/urm on every stop or restart, losing the journald backup needed for crash recovery. It also ignores URM_RUNSTATEDIR and doesn't create URM_CACHE_DIR. Run systemd-tmpfiles with our urm.conf before starting instead. It creates both directories from the CMake paths and never removes them. Signed-off-by: Ali Erdinc Koroglu <ali.koroglu@oss.qualcomm.com>
Qualcomm AI ReviewClick to expand Code ReviewReviewed Commits: 5fa7939
RuntimeDirectory= deletes /run/urm on every stop or restart, losing the Run systemd-tmpfiles with our urm.conf before starting instead. It Signed-off-by: Ali Erdinc Koroglu ali.koroglu@oss.qualcomm.com PR OverviewThis pull request modifies the systemd service configuration for the URM (User Resource Manager) service. The changes replace the Files Changed Summary
Key Changes
Critical Issues Identified
SummaryThe migration from [Functionality] Missing tmpfiles configuration dependency - High SeverityThe service configuration now relies on Issue Details:
Recommendation:
Expected urm.conf content should be similar to: Fixed Code Snippet: [Error Handling] Insufficient error handling for tmpfiles creation - Medium SeverityThe Issue Details:
Consideration:
The current implementation treats it as mandatory, which is likely correct for a runtime directory requirement. However, ensure proper logging and error messages are in place for troubleshooting. Current behavior (strict - recommended for critical directories): Alternative (permissive - only if directory creation is optional): |
|
Thanks for this patch, let me verify the patch through package installation as well as building and starting the service locally. |
|
Here is the fedora rawhide package, it may help: https://copr.fedorainfracloud.org/coprs/aekoroglu/fedora/build/11034774/ |
|
Verified, changes are working correctly. Approving |
f938929
into
qualcomm:main
RuntimeDirectory= deletes /run/urm on every stop or restart, losing the journald backup needed for crash recovery. It also ignores URM_RUNSTATEDIR and doesn't create URM_CACHE_DIR.
Run systemd-tmpfiles with our urm.conf before starting instead. It creates both directories from the CMake paths and never removes them.