[systemd-bugs] [Bug 82773] New: Make it easy for applications to save state

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 18 07:06:38 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82773

          Priority: medium
            Bug ID: 82773
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Make it easy for applications to save state
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: bugzilla at hadess.net
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

As discussed on IRC, it would be useful for systemd to lend a hand to
applications that want to save state in the event that they crash.

1. Application will save state every 5/10 seconds when needed to its run-time
directory
2. If the application crashes, systemd would move the application's state file
to permanent storage under the data-dir.
3. If the application is closed properly, the state file would be removed

systemd could help by providing an equivalent to ExecStopPost that would move
files with an app-specific name.

For example, totem saves a state playlist (including current playback position)
to /run/user/1000/org.gnome.Totem/org.gnome.Totem.state.xspf. If totem crashes,
then that file is moved to
~/.local/share/org.gnome.Totem/org.gnome.Totem.state.xspf so that it can
re-read it when restarted.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140818/c4e2e77e/attachment.html>


More information about the systemd-bugs mailing list