You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to mark the status of a service from within start(). Minimal example:
start() {
true
mark_service_stopped
}
However the status remains started.
Looking at src/mark_service/mark_service.c, it appears the intention is to send SIGHUP and that prevent setting the status based on the start() exit status.
Looking at src/openrc-run/openrc-run.c, the only place I can see the flag set by the SIGHUP handler is L1295 and that just aborts the option handling loop.
Or are the comments in mark_service.c obsolete and there is a different way to achieve this?
Thanks
Mark
The text was updated successfully, but these errors were encountered:
Hi,
I have been trying to mark the status of a service from within start(). Minimal example:
start() {
true
mark_service_stopped
}
However the status remains started.
Looking at src/mark_service/mark_service.c, it appears the intention is to send SIGHUP and that prevent setting the status based on the start() exit status.
Looking at src/openrc-run/openrc-run.c, the only place I can see the flag set by the SIGHUP handler is L1295 and that just aborts the option handling loop.
Or are the comments in mark_service.c obsolete and there is a different way to achieve this?
Thanks
Mark
The text was updated successfully, but these errors were encountered: