Hi Kir

On Fri, Apr 13, 2007 at 06:16:25PM +0400, Kir Kolyshkin wrote:
> I see two distinct problems described in this bug report:
> 1. simfs not loaded
> 2. (enhancement) check running kernel config
> 
> Both are fixed in vzctl git.
> 
> Check for kernel config options:
> http://git.openvz.org/?p=vzctl;a=commit;h=8adf5dcc9dda2f621d6df7cec88ad6ab16bb5041
> 
> Loading simfs module:
> http://git.openvz.org/?p=vzctl;a=commit;h=f09fd723bbe70d98b772bd9d13fdf844d14cad59

Thanks a lot for this information.

> Will be available in vzctl-3.0.17. The only thing I'm not sure about if 
> this initscript (etc/init.d/vz-redhat.in) is used by Debian.

Yes it is, but with a patch. Maybe you can include that as well? About half
of it is compatible with redhat, but something need to be done about this
subsys thing that do not exist in debian. Is that directory really needed?

At least short description and force-reload should be possible to include
in the RedHat version. :)

The patch is as follows:

--- vzctl-3.0.16.orig/etc/init.d/vz-redhat.in
+++ vzctl-3.0.16/etc/init.d/vz-redhat.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #  Copyright (C) 2000-2007 SWsoft. All rights reserved.
 #
 #  This program is free software; you can redistribute it and/or modify
@@ -30,6 +30,7 @@
 # Default-Start: 2 3 5
 # Default-Stop:
 # Description: OpenVZ startup script.
+# Short-Description: OpenVZ startup script
 ### END INIT INFO
                                                                                
                               
                                                                                
                               
@@ -43,7 +44,7 @@
                                                                                
                               
 [EMAIL PROTECTED]@/vzctl
 [EMAIL PROTECTED]@/vzquota
-LOCKFILE=/var/lock/subsys/vz_lock
+LOCKFILE=/var/lock/vz_lock
 VESTAT=/proc/vz/vestat
 PRELOAD_MODULES=
 MODULES=
@@ -422,7 +423,7 @@
                print_failure
                return 1
        fi
-       if [ -f /var/lock/subsys/vz ]; then
+       if [ -f /var/lock/vz ]; then
                __echo "OpenVZ already running"
                print_failure
                return 1
@@ -463,7 +464,7 @@
        ve_start
                                                                                
                               
        rm -f $LOCKFILE
-       touch /var/lock/subsys/vz
+       touch /var/lock/vz
 }
                                                                                
                               
 function stop()
@@ -487,7 +488,7 @@
        done
        print_success
        rm -f $LOCKFILE
-       rm -f /var/lock/subsys/vz
+       rm -f /var/lock/vz
 }
                                                                                
                               
 function load_modules()
@@ -511,6 +512,10 @@
   stop)
        stop
        ;;
+  force-reload)
+        stop
+       start
+        ;;
   restart)
        stop
        start


Regards,

// Ola

> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                     654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://opalsys.net/                 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]

Reply via email to