wake in sleep

Post Reply
nduvnjak
Posts: 40
Joined: Wed Feb 06, 2008 3:45 pm

wake in sleep

Post by nduvnjak »

Hi,
can anyone briefly explain why (and whether it is at all) recommended using "wake" option in our SLEEP calls?
e.g.
<sleep 30 wake>
instead of :
<sleep 30>
?

I know what is the purpose of WAKE option , but I was wondering if omitting it increase a risk of instability and/or infinite "hang" of the Vortex script? Our scripts on Linux servers and there is no chance some of them are set to sleep for a long/indefinite period of time. Also, we never need another process/signal to wake them up, only time we have the need to "wake up" the script are rare occasion when we want to kill them and then we use the SIGTERM signal , which apparently does the job immediately, i.e. it doesn't wait for sleep to finish.


thanks,
Nenad
User avatar
mark
Site Admin
Posts: 5495
Joined: Tue Apr 25, 2000 6:56 pm

wake in sleep

Post by mark »

You can leave off the wake unless you specifically need it for process management. e.g. send a signal like sigusr1 for the script to wakeup and exit gracefully instead of being cut off at the knees by sigterm.
nduvnjak
Posts: 40
Joined: Wed Feb 06, 2008 3:45 pm

wake in sleep

Post by nduvnjak »

thanks a lot!
Post Reply