LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   making sys v message queues persistent across system reboots. (http://www.linuxquestions.org/questions/programming-9/making-sys-v-message-queues-persistent-across-system-reboots-4175419275/)

avee137 07-29-2012 11:52 PM

making sys v message queues persistent across system reboots.
 
hello,

is there any way to make sys v message queues persistent across the reboots?

kauuttt 07-31-2012 03:08 AM

I hope you mean system reboot. Then answer is NO.

theNbomr 08-01-2012 05:37 PM

You could easily create an init script that creates queues using the same key each time. Applications that use the queue will then not need to create them at runtime. If the system was given an orderly shutdown, a complementary shutdown script could be crafted and executed to save the queue contents in some kind of disk file, and the file could be used to re-populate the queue on startup.

I think there is enough support machinery in SYS V message queues to support that, but I think not in POSIX queues.

Sounds like an interesting project. I think I'll throw it out there for the next guy who asks what kind of program he should write with his newly learned language.

--- rod.


All times are GMT -5. The time now is 12:04 AM.