← Back to team overview

launchpad-dev team mailing list archive

Re: Using a signal to switch to read-only mode

 

Perhaps a similar method could be used in future for site-wide
notifications.  <https://dev.launchpad.net/NotificationSystem>.  For
example if there is a site-wide-notification.txt, it can contain
configuration for a message to be displayed in a banner at the top of
some or all html pages.

I don't want to bloat the scope of the readonly flag, but perhaps it's
useful to at least consider whether the same mechanism would work for
both, or it may shed light on the implementation of the readonly
switch.

For example it suggests to me that just using SIGUSR2 other than
meaning "check now" doesn't allow passing enough data.

Perhaps you can check for the file from some high-level loop, but no
more than every say ten seconds?

-- 
Martin <http://launchpad.net/~mbp/>



Follow ups

References