Added commenting of clvm init script.
[invirt/doc/xvm.git] / update-init-priorities.sh
1 #!/bin/sh
2
3 # Update various init script priorities
4
5 # open-iscsi shouldn't be killed when switching runlevels
6 update-rc.d -f open-iscsi remove
7 update-rc.d open-iscsi start 41 0 1 6 . start 25 S .
8 # don't disconnect from targets when xend brings up peth2
9 rm /etc/network/if-up.d/open-iscsi
10 rm /etc/network/if-down.d/open-iscsi
11
12 # clvm needs to be running before lvm2 starts
13 update-rc.d -f clvm remove
14 update-rc.d clvm start 3 0 6 . start 65 S .
15
16 # Start ssh early in the boot process so we can get in to fix things
17 # when there is a hang.
18 update-rc.d -f ssh remove
19 update-rc.d ssh start 1 0 1 2 3 4 5 6 . start 60 S .
20
21 # leave network interfaces up for reboot so iscsi can disconnect
22 # see http://groups.google.com/group/open-iscsi/msg/a547c613a23abd81
23 perl -pi.bak -e 's/reboot -d -f -i/reboot -d -f/' /etc/init.d/reboot