Re: safe halt/reboot/shutdown

2006-10-19 Thread martin f krafft
also sprach martin f krafft <[EMAIL PROTECTED]> [2006.10.17.1618 +0200]: > Thus, unless I get other suggestions, I'll package it up in its > own package, which diverts /sbin/{reboot,halt,shutdown} and puts > my shell script in their place. I'll Enhance whatever init systems > there are and I'll ask

Re: safe halt/reboot/shutdown

2006-10-17 Thread martin f krafft
also sprach Andreas Tille <[EMAIL PROTECTED]> [2006.10.17.1600 +0200]: > According to my own experience this would probably be the only > clean way. I fail to see the problem with my shell script: unless it's called via SSH while connected to a terminal, it does nothing else but call /sbin/halt.re

Re: safe halt/reboot/shutdown

2006-10-17 Thread martin f krafft
also sprach Marc Haber <[EMAIL PROTECTED]> [2006.10.17.1556 +0200]: > >You want to alter /sbin/shutdown itself? > > Yes. Go for it. In the mean time I am going to deal with my shell script. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PRO

Re: safe halt/reboot/shutdown

2006-10-17 Thread Andreas Tille
On Tue, 17 Oct 2006, Marc Haber wrote: You want to alter /sbin/shutdown itself? Yes. According to my own experience this would probably be the only clean way. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscr

Re: safe halt/reboot/shutdown

2006-10-17 Thread Marc Haber
On Tue, 17 Oct 2006 15:12:25 +0200, martin f krafft <[EMAIL PROTECTED]> wrote: >also sprach Marc Haber <[EMAIL PROTECTED]> [2006.10.17.1453 +0200]: >> A more compatible way of doing so would be having an optional >> configuration file where one could set an option that shutdown >> won't do anything

Re: safe halt/reboot/shutdown

2006-10-17 Thread martin f krafft
also sprach Marc Haber <[EMAIL PROTECTED]> [2006.10.17.1453 +0200]: > A more compatible way of doing so would be having an optional > configuration file where one could set an option that shutdown > won't do anything unless the correct host name was given on the > command line. You want to alter /

Re: safe halt/reboot/shutdown

2006-10-17 Thread Marc Haber
On Mon, 16 Oct 2006 16:50:08 +0200, martin f krafft <[EMAIL PROTECTED]> wrote: >I am sure you've all once typed 'halt' only to notice that >you were in an active SSH session and the machine on the other side >of $BIG_DISTANCE obediently followed your request. I've done it way >too much, so I ended

Re: safe halt/reboot/shutdown

2006-10-16 Thread Andreas Tille
On Mon, 16 Oct 2006, martin f krafft wrote: Yes and no. From the bug report I think your approach was more complex (esp. since it involved sudo). Mine's really just a hack that will only do some silly check if it's called over an SSH connection and a terminal is connected. Otherwise it just pass

Re: safe halt/reboot/shutdown

2006-10-16 Thread martin f krafft
also sprach Andreas Tille <[EMAIL PROTECTED]> [2006.10.16.2151 +0200]: > It is exactly what I did and what caused the trouble and hours > of debugging. Yes and no. From the bug report I think your approach was more complex (esp. since it involved sudo). Mine's really just a hack that will only do

Re: safe halt/reboot/shutdown

2006-10-16 Thread Andreas Tille
On Mon, 16 Oct 2006, martin f krafft wrote: also sprach Petter Reinholdtsen <[EMAIL PROTECTED]> [2006.10.16.1740 +0200]: This script, along with symlinks from halt and reboot, lives in /usr/local/sbin on all my systems Replacing halt might be a bit risky, as the story in http://bugs.debian.or

Re: safe halt/reboot/shutdown

2006-10-16 Thread martin f krafft
also sprach Petter Reinholdtsen <[EMAIL PROTECTED]> [2006.10.16.1740 +0200]: > > This script, along with symlinks from halt and reboot, lives in > > /usr/local/sbin on all my systems > > Replacing halt might be a bit risky, as the story in > http://bugs.debian.org/354163> document. :) I would not

Re: safe halt/reboot/shutdown

2006-10-16 Thread Petter Reinholdtsen
[martin f kraft] > This script, along with symlinks from halt and reboot, lives in > /usr/local/sbin on all my systems Replacing halt might be a bit risky, as the story in http://bugs.debian.org/354163> document. :) Friendly, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED

safe halt/reboot/shutdown

2006-10-16 Thread martin f krafft
Hi all, I am sure you've all once typed 'halt' only to notice that you were in an active SSH session and the machine on the other side of $BIG_DISTANCE obediently followed your request. I've done it way too much, so I ended up hacking up http://svn.madduck.net/pub/sbin/base/shutdown This scrip