Need app-specific shutdown delay to allow saving state
Ted Gould
ted at ubuntu.com
Wed Feb 25 14:56:21 GMT 2009
On Wed, 2009-02-25 at 13:12 +0000, Scott James Remnant wrote:
> On Thu, 2009-02-19 at 15:27 -0800, Jim Avera wrote:
>
> > Hi, Does anyone know if work is being done to allow applications to
> > control how much time they get to gracefully exit during system
> > shut-down? Currently it is 10 seconds, hard-coded
> > in /etc/init.d/{sendsigs,killprocs} . This is the max time between
> > kill -15 and kill -9. If so, please point me to the appropriate
> > place.
> >
> This only applies to processes left running.
>
> The simplest way to control an app's own shutdown is for that
> application to install its own init script with a K* name.
Would it be possible to generically contact gnome-session and ask it to
shutdown the system? I'm not sure how to get all the user's DBus
Session Buses, but it would seem if you could you'd get a more graceful
shutdown if done at the command line or by another user on the system.
--Ted
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20090225/076f585a/attachment.pgp
More information about the ubuntu-devel
mailing list