LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-29-2012, 10:52 PM   #1
avee137
Member
 
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.


hello,

is there any way to make sys v message queues persistent across the reboots?
 
Old 07-31-2012, 02:08 AM   #2
kauuttt
Member
 
Registered: Dec 2008
Location: Kolkata, India
Distribution: Ubuntu
Posts: 123

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 ehsan_haq98@yahoo.com 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 07:49 AM.

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