LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-29-2012, 10:52 PM   #1
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Rep: Reputation: 16
making sys v message queues persistent across system reboots.


is there any way to make sys v message queues persistent across the reboots?
Old 07-31-2012, 02:08 AM   #2
Registered: Dec 2008
Location: Atlanta, GA, USA
Distribution: Ubuntu
Posts: 130

Rep: Reputation: 26
I hope you mean system reboot. Then answer is NO.
Old 08-01-2012, 04:37 PM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sys V Message Queues From Kernel Space jhwilliams Programming 1 08-29-2011 12:27 AM
POSIX Queues with message type facility of System V queues Programming 2 12-27-2009 11:45 AM
removing all message queues from the system aryan1 Linux - General 1 08-31-2009 07:34 PM
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
System V message queues... sachitha Programming 2 03-19-2006 07:12 AM

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration