Subject: Disabling user-rebooting while apt is upgrading a system
Date: Mon, 29 Oct 2007 09:45:56 +1300
Package: apt
Version: 0.7.6
Severity: wishlist
It would be nice if apt would provide a way, perhaps in doc/apt/examples, to disable
user-initiated reboots. It would disable rebooting when starting and re-enable it at the end of the process.
I often upgrade machines while people are online. However, sometimes they disconnect from IM and reboot their computers while I am doing an upgrade. I'm afraid that it could make the system unbootable.
Of course the easy way is to message them to tell them to keep the computer on until I tell them I'm done. But I was curious whether there was sometime that could be done automatically.
There seems to be quite a few things to disable to prevent reboots:
http://ubuntu.wordpress.com/2006/03/20/disable-shutdown-for-normal-users/
But on the other hand, the common case (GDM/KDM) would probably be enough. It would be a good start at least.
Francois
Acknowledgement sent
to Francois Marier <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>.
(Fri, 02 Jan 2009 20:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to "Eugene V. Lyubimkin" <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>.
(Fri, 02 Jan 2009 20:36:08 GMT) (full text, mbox, link).
Hello.
Francois Marier wrote:
> Now that "molly-guard" has hooks, this feature could be implemented by
> having apt drop in a small script in /etc/molly-guard/run.d/
Yes, looks promising after looking to molly-guard description.
--
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
Ukrainian C++ developer, Debian Maintainer, APT contributor