Implementing Service Synchronization with notify:pid #391
Replies: 5 comments 7 replies
-
The syntax for declaring process B should be:
Please note, the synchronization is actually a dependency, so if process A stops the condition will no longer be satisfied and B will also be stopped. If A is stopped and restarted, so will B. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your comment but no luck so far 😞 However, I know the correct syntax for my .conf file 😄 . It could be something else that's broken. Here is what process A looks like:
Do you have any ideas to debug? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Oh nice. It seems like I am missing that plugin. I know that |
Beta Was this translation helpful? Give feedback.
-
Hi, I believe my question is still relevant, so I've posted it here instead of starting a new topic 😄. I've managed to run synchronization with PID and systemd. However, during my testing, I noticed an issue with the dependency management. Specifically, processes dependent on Here is my configuration
In this setup,
I'm curious as to why this happens. Is it a bug or a feature? I also tested with |
Beta Was this translation helpful? Give feedback.
-
Bug reported in #392 and fixed as of Finit v4.7, closing. |
Beta Was this translation helpful? Give feedback.
-
Hi Finit users and Happy new year all,
I am quite new to Finit and am currently learning how to implement Service Synchronization using notify:pid among other available options. I have two processes: A and B, where B should start only after A has started. My goal is to ensure that process_B starts only after process_A has successfully started. Unfortunately, it hasn't worked as expected.
I am using Finit v4.6. Both are compiled C programs. In process A, I write its PID into /var/run/process_A.pid. Below is my configuration file:
When I checked the status with initctl, I got:
I've also verified that the PID file has been correctly saved into /var/run/process_A.pid:
I'm not sure what's messing up here, so I'd really appreciate any help or tips on where I might have gone wrong with my setup.
Beta Was this translation helpful? Give feedback.
All reactions