how to return systemctl status of service running on specific condition

mkatlinuxorg

New Member
Joined
Jan 23, 2023
Messages
3
Reaction score
0
Credits
39
Hello.
I'm testing specific scenario under systemd.
I start some simple service with systemctl.
It executes some script which starts some work: (for ex: it counts something from 1 to n which takes time).
When the result is finally ok - it does some job.
Now.
When I do systemctl it shows running at the very beginning. But in fact it still calculates from first block and then do some job at the end.
Is it possible to persuade systemd to return state Running conditional when it reaches the phase after calculating and doing the later work?
I did try to workaround by ExecStartPost but failed.
 

Members online


Top