-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
service.c: set condition 'done' for oneshot tasks #207
service.c: set condition 'done' for oneshot tasks #207
Conversation
Interesting. It would be great if this also included an official way of accessing this information instead of poking around in the internals. Meaning, could you please add a way of inspecting this through Also, and possibly more importantly. A one-shot task per spec. runs once per runlevel it's allowed to run in, so when changing runelevel the task is run once again. Maybe this file should be removed for all tasks that are restarted? |
Thanks for the review, will rework a V2. |
Any progress on this? I'm gearing up for release 4.2 very soon ... :) |
Finit v4.2 was released during the weekend. Maybe we can get this into the next release cycle? 🙏 |
@troglobit sorry for the delayed feedback, we are currently being blocked by #216, so have not managed time work on this. |
9fe9597
to
a669c94
Compare
Please kindly help me review this V2. If I understood you correctly, when SM enters SVC_DONE_STATE, we set done condition, and when it enters SVC_HALTED_STATE, we clear the done condition. So I think the svc_set_state function is still the proper place to put the logic in. |
a669c94
to
2d12067
Compare
We like to know when a runtask (run/task/sysv)is done, so as to start the services that depending on it, set a oneshot condition 'done' for that case and clear it when runtask services enter HALTED state. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2d12067
to
f0f358a
Compare
Much better, thank you! :) |
We like to know when a oneshot task is done, so as to start the
services that depending on it, set a oneshot condition 'done' for
that case.
Signed-off-by: Robert Andersson robert.m.andersson@atlascopco.com
Signed-off-by: Ming Liu liu.ming50@gmail.com