-
Notifications
You must be signed in to change notification settings - Fork 26
Topic/rdkb 63981 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Topic/rdkb 63981 #107
Changes from all commits
865e3d4
b32739e
35afb7d
22441ca
7af2f05
9399cdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,10 +21,11 @@ Description=RFC service | |||||
|
|
||||||
| [Service] | ||||||
| Type=oneshot | ||||||
| ExecStartPre=/bin/sh -c 'sleep 300' | ||||||
| ExecStartPre=/bin/sh -c 'echo "RFC execPre START: $(date)"; sleep 300; echo "RFC execPre END: $(date)"' | ||||||
| EnvironmentFile=/etc/device.properties | ||||||
| ExecStart=/bin/sh -c 'echo "Enable RFC feature" >> ${PARODUS_START_LOG_FILE}' | ||||||
| ExecStart=/bin/sh -c '/lib/rdk/rfc.service &' | ||||||
| ExecStart=/bin/sh -c 'echo " $(date) Enable RFC feature" >> ${PARODUS_START_LOG_FILE}' | ||||||
|
||||||
| ExecStart=/bin/sh -c 'echo " $(date) Enable RFC feature" >> ${PARODUS_START_LOG_FILE}' | |
| ExecStart=/bin/sh -c 'echo "$(date) Enable RFC feature" >> ${PARODUS_START_LOG_FILE}' |
Copilot
AI
Apr 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the main service script in the background ('&') under Type=oneshot means systemd won’t reliably track the long-running process, and the unit can report success even if /lib/rdk/rfc.service fails immediately. Prefer letting systemd manage the process directly (e.g., Type=simple with ExecStart=/lib/rdk/rfc.service, or Type=forking with a PIDFile if it daemonizes) so restarts/status reflect the real process state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExecStartPreis doing three actions (log, sleep, log) via a shell-cstring. For systemd units this is harder to reason about and makes it difficult to adjust timeouts/ordering later. Consider splitting this into multipleExecStartPre=directives (systemd runs them sequentially) and/or using native commands (e.g.,ExecStartPre=/bin/sleep 300) so each step is separately visible and failure behavior is clearer.