The idea would be for the background task to set a flag in shared memory showing it had started successfully, and the parent process could check for that flag to confirm the background task/s had started, if it times out after a second then the background failed to start. Obviously once it’s running it can set values as well to show progress of the background task/s. From: Jānis Elmeris [mailto:janis.elmeris@xxxxx] Thank you for the idea! I understand that some proper background service is an option, that could take its input from a database and do its work independently from the initiator script (I don't really need any response back from the job to act upon, just to know that it was executed without errors). I just hoped that there is some quicker, dirtier way of just spawning a separate process to not hold the main one, while still being able to monitor if any error has occurred. Janis otrd., 2020. g. 18. aug., plkst. 18:16 — lietotājs Arno Kuhl (<arno@xxxxxxxxxxxxxx>) rakstīja:
|