We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae7b63 commit b539e71Copy full SHA for b539e71
scripts/init.d-attach-static-vdis
@@ -10,6 +10,10 @@ STATE_DIR=/etc/xensource/static-vdis
10
# Source function library.
11
. /etc/init.d/functions
12
13
+ OUTPUT=$(/opt/xensource/bin/static-vdis detach ${UUID} 2>&1)
14
+ if [ $? -ne 0 ]; then
15
+ logger "Attempt to detach VDI: ${UUID} failed -- skipping (Error was: ${OUTPUT})"
16
+ fi
17
clear_stale_state(){
18
for i in $(ls -1 ${STATE_DIR}); do
19
# Clear the now-stale symlink to the attached disk. From this point the disk will
@@ -60,7 +64,7 @@ start() {
60
64
clear_stale_state
61
65
attach_all
62
66
RC=$?
63
- echo
67
+ echo
68
return $RC
69
}
70
0 commit comments