[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian Package



On Tue, 2010-03-09 at 18:25 +0000, brian m. carlson wrote:
> On Tue, Mar 09, 2010 at 12:52:31PM -0500, Jake wrote:
> > I was creating a Debian package and after it install I would like it
> > to prompt the user to reboot the computer, is there anyway to do
> > this?
> 
> Except in very limited circumstances, there should be no need to reboot
> the computer after installing a package.  The only exception I can think
> of is something related to the kernel; in general, root should be aware
> that a reboot is required to make that functionality work, but may want
> to defer it indefinitely (for example, on a server).
> 
> So yes, the right way to do this is debconf, but what you want to do is
> probably the wrong thing.

You could also have a look at update-notifier. It has a mechanism to
signal users that they should reboot. Rebooting from maintainer scripts
is probably a bad idea (may leave dpkg in an inconsistent state).

-- 
-- arthur - adejong@debian.org - http://people.debian.org/~adejong --

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: