Service script and POL shutdown
Posted: Thu Mar 17, 2011 7:51 am
Suppose that you have a script which starts at POL startup and that runs in background. Something like this:
Now, suppose that POL is Shutdown();-ed.
How it's handled the shutdown of a script like this? It is killed in the middle of the execution, or the core wait for the first pause in the script, for example a sleep(), and then shuts it down?
Is there a nice way to handle POL shutdown inside the script?
Code: Select all
program xyz()
...
while (1)
...
sleep(10);
endwhile
endprogramHow it's handled the shutdown of a script like this? It is killed in the middle of the execution, or the core wait for the first pause in the script, for example a sleep(), and then shuts it down?
Is there a nice way to handle POL shutdown inside the script?