New here?
Create an account to submit posts, participate in discussions and chat with people.
Sign up
Hey all. Excited to be here and see if I can possibly contribute some efforts. Already doing some things locally and online in other communities, but glad to see lots of movement all around.
 
I have a software & design background so let me know if there is a backlog of work I can look at.
You must log in or sign up to comment
6 comments:
2 years ago 3 points (+3 / -0 ) 1 child
Hello, and welcome.
 
What kind of software do you know? Any experience with API, or Search?
None
kc
2 years ago 3 points (+3 / -0 ) 1 child
Hi RightSideFunding! Yes. I have extensive experience with using APIs and search SDKs.
None
2 years ago 1 point (+1 / -0 ) 2 children
Ever use systemd?
 
If so, what is the best way to run a.service fully, before b.service ?
None
kc
2 years ago 1 point (+1 / -0 ) 1 child
That's a tough question, mostly because I am not a Linux user outside of server environments. I guess I would have to say... _it depends_.
 
If you are looking to run service A, and there is some system or API dependency on service B, then you have to create some way of communicating that to the larger environment both are running in. The way I have done that in the past is via several different ways, starting with the most basic and moving into the more virtualized:
 
1. Write a script that will kick off service A, and then wait for that service to register itself as a PID before initiating service B script. This can be done via a simple loop that checks the system processes for a grep matching the service name, and then returning a flag to iterate into the next part of the script.
2. Virtualize each of these in a Dockerfile so that each of the scripts have to be fully kicked off before the next one starts.
3. Use a higher level language with something like Callbacks or Async code that will allow for a control flow of services.
None
2 years ago 1 point (+1 / -0 )
Interesting solutions, thank you and i will look at callbacks
None
2 years ago 1 point (+1 / -0 ) Edited 2022-02-25 00:19:01
Have you tried adding Type=oneshot to the Service section in the .service files

https://askubuntu.com/questions/1072165/systemd-how-to-start-service-b-after-service-a-runs-to-completion

Hope this helps
None
Toast message