mkatlinuxorg
New Member
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.
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.