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?
Thank You,
Jacob Fernandes
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1268157151.5164.1.camel@jake-laptop">http://lists.debian.org/1268157151.5164.1.camel@jake-laptop
03-09-2010, 05:13 PM
Patrick Matthäi
Debian Package
Am 09.03.2010 18:52, schrieb Jake:
Hello,
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?
The right way here is to use debconf for it.
But why should it be needed to reboot the computer after this?
I am feeling myself remembered to windows systems >.<
--
/*
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi
GNU/Linux Debian Developer
Comment:
Always if we think we are right,
we were maybe wrong.
*/
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4B968FE3.4040506@debian.org">http://lists.debian.org/4B968FE3.4040506@debian.org
03-09-2010, 05:25 PM
"brian m. carlson"
Debian Package
On Tue, Mar 09, 2010 at 12:52:31PM -0500, Jake wrote:
> Hello,
>
> 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.
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
03-14-2010, 11:22 AM
Arthur de Jong
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 --