Download your favorite Linux distribution at LQ ISO.
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, 11: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, 03:08 AM   #2
Registered: Dec 2008
Location: Atlanta, GA, USA
Distribution: Ubuntu
Posts: 135

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

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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 01:27 AM
POSIX Queues with message type facility of System V queues Programming 2 12-27-2009 12:45 PM
removing all message queues from the system aryan1 Linux - General 1 08-31-2009 08:34 PM
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 11:15 AM
System V message queues... sachitha Programming 2 03-19-2006 08:12 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:53 PM.

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