OpenVZ Forum


Home » International » Russian » Debug upstart
Re: Debug upstart [message #40750 is a reply to message #40747] Tue, 28 September 2010 07:01 Go to previous messageGo to previous message
Macumazan is currently offline  Macumazan
Messages: 6
Registered: September 2010
Location: Russia
Junior Member
К сожалению не работает. Попробовал и --debug и --verbose - в логах пусто.
Вот /etc/init/rc-sysinit.conf из ubuntu 10,04
# rc-sysinit - System V initialisation compatibility
#
# This task runs the old System V-style system initialisation scripts,
# and enters the default runlevel when finished.

description     "System V initialisation compatibility"
author          "Scott James Remnant <scott@netsplit.com>"

start on filesystem
stop on runlevel

# Default runlevel, this may be overriden on the kernel command-line
# or by faking an old /etc/inittab entry
env DEFAULT_RUNLEVEL=2

# There can be no previous runlevel here, but there might be old
# information in /var/run/utmp that we pick up, and we don't want
# that.
#
# These override that
env RUNLEVEL=
env PREVLEVEL=

#console output
env INIT_VERBOSE

task

script
    # Check for default runlevel in /etc/inittab
    if [ -r /etc/inittab ]
    then
        eval "$(sed -nre 's/^[^#][^:]*:([0-6sS]):initdefault:.*/DEFAULT_RUNLEVEL="\1";/p' /etc/inittab || true)"
    fi

    # Check kernel command-line for typical arguments
    for ARG in $(cat /proc/cmdline)
    do
        case "${ARG}" in
        -b|emergency)
            # Emergency shell
            [ -n "${FROM_SINGLE_USER_MODE}" ] || sulogin
            ;;
        [0123456sS])
            # Override runlevel
            DEFAULT_RUNLEVEL="${ARG}"
            ;;
        -s|single)
            # Single user mode
            [ -n "${FROM_SINGLE_USER_MODE}" ] || DEFAULT_RUNLEVEL=S
            ;;
        esac
    done

    # Run the system initialisation scripts
    [ -n "${FROM_SINGLE_USER_MODE}" ] || /etc/init.d/rcS

    # Switch into the default runlevel
    telinit "${DEFAULT_RUNLEVEL}"
end script



for ARG in $(cat /proc/cmdline)
отрабатывает всего 3 параметра, но не debug и verbose.
Еще есть env INIT_VERBOSE , но если ей присвоить значение debug, то система вообще не поднимается.
Если в
telinit "${DEFAULT_RUNLEVEL}"

добавить -v (telinit --help)
telinit -v "${DEFAULT_RUNLEVEL}"

тоже не помогает.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Что-то сжирает Ram.
Next Topic: Расшарить устройство целиком
Goto Forum:
  


Current Time: Sun Aug 03 12:46:16 GMT 2025

Total time taken to generate the page: 0.81378 seconds