Bug#400132: util-vserver: on shutdown, init script should do forcestop

2006-11-25 Thread Micah Anderson


Ola Lundqvist wrote:
 Micah do you have an opinion about this?
 
 Regards,
 

I do -- its complicated because the initscript takes care of various
corner cases, but I've worked something out with vagrant on IRC and have
committed a fix to SVN.

Micah

 On Thu, Nov 23, 2006 at 04:43:59PM -0800, Vagrant Cascadian wrote:
 Package: util-vserver
 Version: 0.30.211-2
 Severity: wishlist

 when starting a vserver instance manually (i.e. not MARKed to be started
 at boot) and then shutting down the host server without manually
 shutting down the vserver instance, the vserver instance gets shut down
 uncleanly, and leaves filesystems uncleanly un-mounted.

 in /etc/init.d/util-vserver, there is a forcestop method which could
 handle this situation more appropriately.

 would it be bad to always behave like the forcestop mode?

 alternately, would it be possible to add a configuration option to
 behave like forcestop even when called with stop? patch attached.

 thanks for maintaining util-vserver, it's great! :)

 live well,
   vagrant

 -- System Information:
 Debian Release: 4.0
   APT prefers testing
   APT policy: (500, 'testing')
 Architecture: i386 (i686)
 Shell:  /bin/sh linked to /bin/bash
 Kernel: Linux 2.6.18-2-vserver-686
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

 Versions of packages util-vserver depends on:
 ii  debconf  1.5.8   Debian configuration management 
 sy
 ii  iproute  20061002-2  Professional tools to control 
 the 
 ii  libbeecrypt6 4.1.2-6 open source C library of 
 cryptogra
 ii  libc62.3.6.ds1-8 GNU C Library: Shared libraries
 ii  make 3.81-2  The GNU version of the make 
 util
 ii  net-tools1.60-17 The NET-3 networking toolkit

 Versions of packages util-vserver recommends:
 ii  binutils  2.17-3 The GNU assembler, linker and 
 bina
 ii  debootstrap   0.3.3  Bootstrap a basic Debian system

 -- debconf information excluded
 
 --- /etc/init.d/util-vserver 2006-10-07 13:56:50.0 -0600
 +++ util-vserver 2006-11-23 17:13:35.0 -0700
 @@ -191,6 +191,9 @@
   fi
   # Then stop the modern vservers
   stop
 + if [ $FORCESTOP = true ]; then
 +forcestop
 + fi
   ;;
  forcestop)
  stop
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400132: util-vserver: on shutdown, init script should do forcestop

2006-11-24 Thread Ola Lundqvist
Micah do you have an opinion about this?

Regards,

// Ola

On Thu, Nov 23, 2006 at 04:43:59PM -0800, Vagrant Cascadian wrote:
 Package: util-vserver
 Version: 0.30.211-2
 Severity: wishlist
 
 when starting a vserver instance manually (i.e. not MARKed to be started
 at boot) and then shutting down the host server without manually
 shutting down the vserver instance, the vserver instance gets shut down
 uncleanly, and leaves filesystems uncleanly un-mounted.
 
 in /etc/init.d/util-vserver, there is a forcestop method which could
 handle this situation more appropriately.
 
 would it be bad to always behave like the forcestop mode?
 
 alternately, would it be possible to add a configuration option to
 behave like forcestop even when called with stop? patch attached.
 
 thanks for maintaining util-vserver, it's great! :)
 
 live well,
   vagrant
 
 -- System Information:
 Debian Release: 4.0
   APT prefers testing
   APT policy: (500, 'testing')
 Architecture: i386 (i686)
 Shell:  /bin/sh linked to /bin/bash
 Kernel: Linux 2.6.18-2-vserver-686
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 
 Versions of packages util-vserver depends on:
 ii  debconf  1.5.8   Debian configuration management 
 sy
 ii  iproute  20061002-2  Professional tools to control 
 the 
 ii  libbeecrypt6 4.1.2-6 open source C library of 
 cryptogra
 ii  libc62.3.6.ds1-8 GNU C Library: Shared libraries
 ii  make 3.81-2  The GNU version of the make 
 util
 ii  net-tools1.60-17 The NET-3 networking toolkit
 
 Versions of packages util-vserver recommends:
 ii  binutils  2.17-3 The GNU assembler, linker and 
 bina
 ii  debootstrap   0.3.3  Bootstrap a basic Debian system
 
 -- debconf information excluded

 --- /etc/init.d/util-vserver  2006-10-07 13:56:50.0 -0600
 +++ util-vserver  2006-11-23 17:13:35.0 -0700
 @@ -191,6 +191,9 @@
fi
# Then stop the modern vservers
stop
 +  if [ $FORCESTOP = true ]; then
 + forcestop
 +  fi
;;
  forcestop)
   stop


-- 
 - Ola Lundqvist ---
/  [EMAIL PROTECTED] Annebergsslingan 37  \
|  [EMAIL PROTECTED] 654 65 KARLSTAD  |
|  +46 (0)54-10 14 30  +46 (0)70-332 1551   |
|  http://www.opal.dhs.org UIN/icq: 4912500 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400132: util-vserver: on shutdown, init script should do forcestop

2006-11-23 Thread Vagrant Cascadian
Package: util-vserver
Version: 0.30.211-2
Severity: wishlist

when starting a vserver instance manually (i.e. not MARKed to be started
at boot) and then shutting down the host server without manually
shutting down the vserver instance, the vserver instance gets shut down
uncleanly, and leaves filesystems uncleanly un-mounted.

in /etc/init.d/util-vserver, there is a forcestop method which could
handle this situation more appropriately.

would it be bad to always behave like the forcestop mode?

alternately, would it be possible to add a configuration option to
behave like forcestop even when called with stop? patch attached.

thanks for maintaining util-vserver, it's great! :)

live well,
  vagrant

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-vserver-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages util-vserver depends on:
ii  debconf  1.5.8   Debian configuration management sy
ii  iproute  20061002-2  Professional tools to control the 
ii  libbeecrypt6 4.1.2-6 open source C library of cryptogra
ii  libc62.3.6.ds1-8 GNU C Library: Shared libraries
ii  make 3.81-2  The GNU version of the make util
ii  net-tools1.60-17 The NET-3 networking toolkit

Versions of packages util-vserver recommends:
ii  binutils  2.17-3 The GNU assembler, linker and bina
ii  debootstrap   0.3.3  Bootstrap a basic Debian system

-- debconf information excluded
--- /etc/init.d/util-vserver2006-10-07 13:56:50.0 -0600
+++ util-vserver2006-11-23 17:13:35.0 -0700
@@ -191,6 +191,9 @@
 fi
 # Then stop the modern vservers
 stop
+if [ $FORCESTOP = true ]; then
+   forcestop
+fi
 ;;
 forcestop)
stop