Re: Reboot in postinst

2005-01-30 Thread Anthony DeRobertis
On Fri, Jan 21, 2005 at 10:18:44AM -0800, Ken Bloom wrote: So I dist-upgrade, and it upgrades 12 packages. Your postinst runs before any of the other 11. The computer reboots immediately in your postinst. Even worse: One of those other 11 was a kernel-image package, and this machine uses lilo.

Re: Reboot in postinst

2005-01-24 Thread Roberto Sanchez
Brian May wrote: Wouter == Wouter Verhelst [EMAIL PROTECTED] writes: Wouter lsof +L 1 rebooting is the only way to make sure rebooting will work if a reboot is required for some reason during peak usage, e.g. power failure, etc... In some situations it might be better to test rebooting first

Re: Reboot in postinst

2005-01-24 Thread Wouter Verhelst
Op ma, 24-01-2005 te 16:39 +1100, schreef Brian May: Wouter == Wouter Verhelst [EMAIL PROTECTED] writes: Wouter lsof +L 1 rebooting is the only way to make sure rebooting will work if a reboot is required for some reason during peak usage, e.g. power failure, etc... In some

Re: Reboot in postinst

2005-01-23 Thread Marc Haber
On Fri, 21 Jan 2005 13:06:55 +0100, Andreas Barth [EMAIL PROTECTED] wrote: I disagree. You should warn the administrator that he has to do that. Especially just restarting ssh is _very_ wrong IMHO, because it can easily kill the only access to a remote computer. Take a look how glibc does it,

Re: Reboot in postinst

2005-01-23 Thread Marc Haber
On Fri, 21 Jan 2005 13:34:51 -0500, Joey Hess [EMAIL PROTECTED] wrote: Roberto Sanchez wrote: If the system is that important to the admin, he will pay attention to such things. Imagine that you are upgrading ssh for some security update over the weekend. If your system is in some colo or

Re: Reboot in postinst

2005-01-23 Thread Wouter Verhelst
Op zo, 23-01-2005 te 10:30 +0100, schreef Marc Haber: I haven't been asked to re-start any services by glibc updates for quite some time, and back in the days when glibc asked to restart services, it always failed. So, rebooting seems to be the only way to be sure after a library update.

Re: Reboot in postinst

2005-01-23 Thread Brian May
Wouter == Wouter Verhelst [EMAIL PROTECTED] writes: Wouter lsof +L 1 rebooting is the only way to make sure rebooting will work if a reboot is required for some reason during peak usage, e.g. power failure, etc... In some situations it might be better to test rebooting first at low-demand

Re: Reboot in postinst

2005-01-22 Thread Anurag
Henrique de Moraes Holschuh wrote: Never mind the very idea of using anything Microsoft in such a scenario. ^ You meant Micros~1 ? :-) Anurag -- --- __ __ gnu

Re: Reboot in postinst

2005-01-21 Thread Marc Haber
On Thu, 20 Jan 2005 21:27:46 +0100, Osamu Aoki [EMAIL PROTECTED] wrote: Relax, he did not say rm -rf / in postinst. That would be postrm. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber |Questions are the |

Re: Reboot in postinst

2005-01-21 Thread Tino Keitel
On Fri, Jan 21, 2005 at 11:03:08 +0100, Marc Haber wrote: On 20 Jan 2005 14:45:52 -0800, Thomas Bushnell BSG [EMAIL PROTECTED] wrote: Yes. Debian packages are supposed to be able to be installed and start working without requiring any reboots. We've made this work pretty well for libc and

Re: Reboot in postinst

2005-01-21 Thread Scott James Remnant
On Fri, 2005-01-21 at 11:03 +0100, Marc Haber wrote: On 20 Jan 2005 14:45:52 -0800, Thomas Bushnell BSG [EMAIL PROTECTED] wrote: Yes. Debian packages are supposed to be able to be installed and start working without requiring any reboots. We've made this work pretty well for libc and all

Re: Reboot in postinst

2005-01-21 Thread Andreas Barth
* Tino Keitel ([EMAIL PROTECTED]) [050121 13:02]: On Fri, Jan 21, 2005 at 11:03:08 +0100, Marc Haber wrote: On 20 Jan 2005 14:45:52 -0800, Thomas Bushnell BSG [EMAIL PROTECTED] wrote: Yes. Debian packages are supposed to be able to be installed and start working without requiring any

Re: Reboot in postinst

2005-01-21 Thread Adeodato Simó
* Andreas Barth [Fri, 21 Jan 2005 13:13:51 +0100]: using old libs. E.g. lsof | grep dpkg- | awk '{print $1, $8}' | sort +0 helps you to find out which ones. There is also checkrestart from the debian-goodies package. Seems to do some more stuff, but don't know how much better it is. --

Re: Reboot in postinst

2005-01-21 Thread David Schmitt
On Friday 21 January 2005 11:03, Marc Haber wrote: This prompts a question I have been wanting to ask for ages: When a security update for, say, libc6, libssl or libz is installed, do I need to restart services or not? That's one of the question you ask three people and get five different

Re: Reboot in postinst

2005-01-21 Thread Wouter Verhelst
Op do, 20-01-2005 te 21:27 +0100, schreef Osamu Aoki: On Thu, Jan 20, 2005 at 07:35:42PM +0100, Wouter Verhelst wrote: Op do, 20-01-2005 te 15:09 -0300, schreef Diogo Kollross: Is there a problem in using something like shutdown -r now inside a postinst script of a package?

Re: Reboot in postinst

2005-01-21 Thread Henrique de Moraes Holschuh
On Fri, 21 Jan 2005, Andreas Barth wrote: Yes. But I prefer verifying that I can login again after each ssh restart. So, I want to do that _only_ if I explicitly do it. (Others may disagree.) I disagree ;-) The way it is done now, punishes lack of attention *IF* a ssh bug breaks it, with

Re: Reboot in postinst

2005-01-21 Thread Henrique de Moraes Holschuh
On Fri, 21 Jan 2005, David Schmitt wrote: On Friday 21 January 2005 11:03, Marc Haber wrote: This prompts a question I have been wanting to ask for ages: When a security update for, say, libc6, libssl or libz is installed, do I need to restart services or not? That's one of the question you

Re: Reboot in postinst

2005-01-21 Thread Roberto Sanchez
Quoting Henrique de Moraes Holschuh [EMAIL PROTECTED]: On Fri, 21 Jan 2005, Andreas Barth wrote: Yes. But I prefer verifying that I can login again after each ssh restart. So, I want to do that _only_ if I explicitly do it. (Others may disagree.) I disagree ;-) The way it is done now,

Re: Reboot in postinst

2005-01-21 Thread sean finney
On Fri, Jan 21, 2005 at 11:00:49AM +0100, Marc Haber wrote: On Thu, 20 Jan 2005 21:27:46 +0100, Osamu Aoki [EMAIL PROTECTED] wrote: Relax, he did not say rm -rf / in postinst. That would be postrm. or, prerm, since it hasn't been rm'd yet. postrm would be run after, if only it still

Re: Reboot in postinst

2005-01-21 Thread David Sawyer
This reminds me of a horror story at a place I used to work. I was browsing the 'Net on one of our production servers (this thing served hundreds of banks around the world). I was looking for some fix or SP for NT. I came across this site that started installing Flash Player. It installed it,

Re: Reboot in postinst

2005-01-21 Thread Petter Reinholdtsen
[David Sawyer] Moral of the story: NEVER SHUTDOWN OR REBOOT WITHOUT ASKING. Another moral might be to always test the stuff you plan to do on a production server on a test-server first. I fail to see how it is sensible to browse the net on a production server. And I fail to see how it is

Re: Reboot in postinst

2005-01-21 Thread Ken Bloom
On Thu, 20 Jan 2005 15:09:46 -0300, Diogo Kollross wrote: Is there a problem in using something like shutdown -r now inside a postinst script of a package? So I dist-upgrade, and it upgrades 12 packages. Your postinst runs before any of the other 11. The computer reboots immediately in

Re: Reboot in postinst

2005-01-21 Thread Joey Hess
Roberto Sanchez wrote: If the system is that important to the admin, he will pay attention to such things. Imagine that you are upgrading ssh for some security update over the weekend. If your system is in some colo or other remote location where you are unable to access it until Monday