Changeset 3593


Ignore:
Timestamp:
Jul 4, 2016, 7:48:49 PM (3 years ago)
Author:
bruno
Message:

Fix #745 by killing remaining processes after reboot, in case it doesn't work (RHEL 6)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/etc/init.d/rcS

    r3542 r3593  
    1010
    1111    reboot
     12    umount -a -d -r 2> /dev/null
     13    sync
     14    # If this is not sufficient, then continue killing what is runnig
     15    kill -TERM 1
     16    sleep 1
     17    kill -KILL 1
     18    sleep 1
     19    # Finally force reboot at kernel level if everything else failed
     20    echo s > /proc/sysrq-trigger
     21    echo u > /proc/sysrq-trigger
     22    echo b > /proc/sysrq-trigger
    1223}
    1324
Note: See TracChangeset for help on using the changeset viewer.