Thanks a lot for the answer! I'll update this on next upload so it will be corrected for debian Lenny.
Best regards, // Ola On Tue, Aug 05, 2008 at 02:30:35PM +0400, Igor Sukhih wrote: > Kir Kolyshkin wrote: > >Igor, can you comment on that? > > > >Ola, runlevel 4 does not have any special meaning in Red Hat. To me > >this is just a bug. > > > >Ola Lundqvist wrote: > >>Hi Kir and others > >> > >>I have got this bug report for Debian. However I need to know the > >>details > >>why this is so. I can understand that runlevel 4 have some special > >>meaning > >>in redhad, > > Debian Define its runlevels this way > > 0 -- System Halt > 1 -- Single user > 2 -- Full multi-user mode (Default) > 3-5 -- Same as 2 > 6 -- System Reboot > > And RedHat defines its runlevels this way. > > 0 — Halt > 1 — Single-user mode > 2 — Not used (user-definable) > 3 — Full multi-user mode > 4 — Not used (user-definable) > 5 — Full multi-user mode (with an X-based login screen) > 6 — Reboot > > ----------------------------------------------------------------------- > So runlevel 4 is not used in RedHat > > > >>but why isn't vzctl stopped in runlevel 0 1 and 6? > > The line '# Default-Stop: ' is part of SuSe init script header is > ignored in SuSE. > > From man insserv > ---------------------------------------------------------------------------------------------------------- > insserv enables an installed system init script (`boot script') by read‐ > ing the comment header of the script, e.g.: > > ### BEGIN INIT INFO > # Provides: boot_facility_1 [ boot_facility_2 ...] > # Required-Start: boot_facility_1 [ boot_facility_2 ...] > # Required-Stop: boot_facility_1 [ boot_facility_2 ...] > # Should-Start: boot_facility_1 [ boot_facility_2 ...] > # Should-Stop: boot_facility_1 [ boot_facility_2 ...] > # Default-Start: run_level_1 [ run_level_2 ...] > # Default-Stop: run_level_1 [ run_level_2 ...] > # Description: multiline_description > ### END INIT INFO > > and calculating the dependencies between all scripts. Please note, that > the Required-Stop, Should-Stop, and Default-Stop are ignored in SuSE > Linux, because the SuSE boot script concept uses a differential link > scheme (see init.d(7)). > > >> > >>Best regards, > >> > >>// Ola > >> > >>On Fri, Aug 01, 2008 at 12:51:40PM +0300, Teodor wrote: > >>>Package: vzctl > >>>Version: 3.0.22-9 > >>>Severity: normal > >>>Tags: patch > >>> > >>>The startup script /etc/init.d/vz is not executed in runlevel 4. It > >>>is a > >>>common practice on Debian to start the services in runlevels 2345 and > >>>stop it in runlevels 016. This patch should be enough: > >>>piti:~# diff /etc/init.d/vz /etc/init.d/vz_orig 30,31c30,31 > >>>< # Default-Start: 2 3 4 5 > >>>< # Default-Stop: 0 1 6 > >>>--- > >>>># Default-Start: 2 3 5 > >>>># Default-Stop: > >>>These are the startup links created automatically: > >>>piti:~# ls -g /etc/rc?.d/*vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc0.d/K20vz -> ../init.d/vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc1.d/K20vz -> ../init.d/vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc2.d/S20vz -> ../init.d/vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc3.d/S20vz -> ../init.d/vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc5.d/S20vz -> ../init.d/vz > >>>lrwxrwxrwx 1 root 12 2008-08-01 01:41 /etc/rc6.d/K20vz -> ../init.d/vz > >>> > >>>As you can see only for rc4.d the link is missing. > >>> > >>>Thanks > >>> > >>> > >>>-- System Information: > >>>Debian Release: lenny/sid > >>>APT prefers testing > >>>APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable') > >>>Architecture: amd64 (x86_64) > >>> > >>>Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) > >>>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > >>>Shell: /bin/sh linked to /bin/bash > >>> > >>>Versions of packages vzctl depends on: > >>>ii iproute 20080417-1 networking and traffic control too > >>>ii libc6 2.7-10 GNU C Library: Shared libraries > >>>ii vzquota 3.0.11-1 server virtualization solution - q > >>> > >>>Versions of packages vzctl recommends: > >>>ii rsync 3.0.3-1 fast remote file copy program (lik > >>> > >>>Versions of packages vzctl suggests: > >>>pn linux-patch-openvz <none> (no description available) > >>> > >>>-- no debconf information > >>> > >>> > >>> > >> > > > > > > -- --- Inguza Technology AB --- MSc in Information Technology ---- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | http://inguza.com/ Mobile: +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]

