Changeset 2538

Show
Ignore:
Timestamp:
04/27/07 11:08:43 (2 years ago)
Author:
hollow
Message:

fake init environment during shutdown, otherwise rc just calls shutdown/halt which does not work without init

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/vserver.functions

    r2512 r2538  
    305305 
    306306            INITCMD_START=( /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" ) 
    307             INITCMD_STOP=( /sbin/rc shutdown ) 
     307            INITCMD_STOP=( env -i RUNLEVEL=0 /sbin/rc shutdown ) 
    308308            INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp ) 
    309309            ;;