forwarded 547334 http://bugzilla.openvz.org/show_bug.cgi?id=1339
thanks

Hi Petter

Thanks a lot for this bug report. It has now been forwarded upstream
as it should affect redhat as well.

Best regards,

// Ola

On Fri, Sep 18, 2009 at 07:42:22PM +0200, Petter Reinholdtsen wrote:
> 
> Package:  vzctl
> Version:  3.0.10-1
> Severity: important
> Tags:     patch
> User:     [email protected]
> Usertags: incorrect-dependencies
> 
> With dependency based boot sequencing, I discovered what I believe is
> a bug in the init.d script.  The script have a hard dependency on
> sshd, yet the package do not depend on openssh-server.  This make me
> believe the sshd dependency should be optional.  The script is also
> lacking stop dependencies.  The $local_fs dependency is redundant when
> depending on $remote_fs.  The script used to start after $syslog, and
> should probably continue to do so.
> 
> The hard dependency on sshd make the package fail to install.  See
> <URL: http://piuparts.debian.org/sid/fail/vzctl_3.0.23-7.log > for the
> test log.  Setting severity to important because this problem will not
> affect everyone, only those without openssh-server already installed.
> 
> <URL: 
> http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html
>  >
> documents the LSB header format.  Some debian notes are available from
> <URL: http://wiki.debian.org/LSBInitScripts >.
> 
> This patch solve the problem.
> 
> diff -ur ../vzctl-3.0.23/etc/init.d/vz-redhat.in 
> ../vzctl-3.0.23-pere/etc/init.d/vz-redhat.in
> --- ../vzctl-3.0.23/etc/init.d/vz-redhat.in     2009-09-18 19:34:53.000000000 
> +0200
> +++ ../vzctl-3.0.23-pere/etc/init.d/vz-redhat.in        2009-09-18 
> 19:37:17.000000000 +0200
> @@ -25,8 +25,10 @@
> 
>  ### BEGIN INIT INFO
>  # Provides: vz
> -# required-start: $network $remote_fs $local_fs sshd
> -# required-stop:
> +# required-start: $network $remote_fs $syslog
> +# required-stop:  $network $remote_fs $syslog
> +# Should-Start:  sshd
> +# Should-Stop:  sshd
>  # Default-Start: 2 3 4 5
>  # Default-Stop: 0 1 6
>  # Short-Description: OpenVZ startup script
> 
> Happy hacking,
> -- 
> Petter Reinholdtsen
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [email protected]                     Annebergsslingan 37      \
|  [email protected]                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  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