in reply to Gracefully exiting and restarting at a later time.
But I understand your question as "how do I tell a running program to stop and to resume"
Two ideas come into my mind if you don't want to pull information from the file-system:
1. A signal-handler:
(Generally intercepting all "kill" signals is anyway a good idea in your case) The perl cookbook has examples regarding sig-handlers.
2. Putting everything into a Webservice and sending the stop message via http.
HTH :)
Cheers Rolf
UPDATE:
maybe a good read: perlipc
|
|---|